【问题标题】:Using Jenkins on Linux server, isn't run all my tests在 Linux 服务器上使用 Jenkins,并没有运行我所有的测试
【发布时间】:2022-10-25 17:39:22
【问题描述】:

当我使用相同的命令mvn clean test 在 IntelliJ 上运行我的测试时,所有测试都在运行。但我尝试在 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 中的控制台输出仅显示“构建已中止”

【问题讨论】:

    标签: java jenkins automated-tests cucumber


    【解决方案1】:

    问题出在 Jenkins 设置中。在配置上,在 3 分钟内设置了超时,并且在此测试中止之后。所以要解决这个问题,应该取消超时

    【讨论】:

      猜你喜欢
      • 2018-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-04
      • 1970-01-01
      • 2016-04-17
      相关资源
      最近更新 更多