在Linux服务器上使用Jenkins,不会运行我的所有测试

lhcgjxsq  于 2022-11-01  发布在  Jenkins
关注(0)|答案(1)|浏览(223)

当我在IntelliJ上使用相同的命令mvn clean test运行我的测试时,所有的测试都在运行。但是我试图在Linux上的Jenkins上运行测试,111个测试中只有5个在运行。

@RunWith(Cucumber.class)
@CucumberOptions(
        features = {"src/test/resources/features/"},
        monochrome = true
)

public class CukesFeatureRunnerTest {

    @BeforeClass
    public static void executeBeforeTests() {

       Configuration.browser = "chrome";
       Configuration.headless = true;
       Configuration.browserSize = "1600x900";

    }

Jenkins中的控制台输出仅显示“构建已中止”

tsm1rwdh

tsm1rwdh1#

问题出在Jenkins设置中。在配置中,设置了3分钟后的超时,在此测试中止后。因此,要解决此问题,应取消超时

相关问题