从测试结果创建 JUnit 图
Creating a JUnit graph from test results
JUnit 是否有 OOB 工具来绘制套件的测试结果?具体来说,我正在使用 Selenium 2 webdriver,我想绘制通过与失败测试的对比图。其次,即使测试失败,我也想让我的测试套件继续,我该怎么做呢?我尝试研究该主题,但 none 的答案完全解决了我的问题。
提前致谢!
或许也应该把我的代码放在这里:
@Test
public void test_Suite() throws Exception {
driver.get("www.my-target-URL.com");
test_1();
test_2();
}
@Test
public void test_1() throws Exception {
//perform test
assertTrue(myquery);
}
@Test
public void test_2() throws Exception {
//perform test
assertTrue(myquery);
}
如果您使用 Jenkins 作为您的 CI 服务器,您需要 Junit Plugin that will allow you to publish the results in the end of the test. And you got Junit Graph 来显示它们。
JUnit 是否有 OOB 工具来绘制套件的测试结果?具体来说,我正在使用 Selenium 2 webdriver,我想绘制通过与失败测试的对比图。其次,即使测试失败,我也想让我的测试套件继续,我该怎么做呢?我尝试研究该主题,但 none 的答案完全解决了我的问题。
提前致谢!
或许也应该把我的代码放在这里:
@Test
public void test_Suite() throws Exception {
driver.get("www.my-target-URL.com");
test_1();
test_2();
}
@Test
public void test_1() throws Exception {
//perform test
assertTrue(myquery);
}
@Test
public void test_2() throws Exception {
//perform test
assertTrue(myquery);
}
如果您使用 Jenkins 作为您的 CI 服务器,您需要 Junit Plugin that will allow you to publish the results in the end of the test. And you got Junit Graph 来显示它们。