Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[JENKINS-9246] Added test case that was attached to the issue report.

  • Loading branch information...
commit 8a09775a2899819cde03724e566656d6324b468a 1 parent f0d4cc5
@redsolo redsolo authored
View
31 src/test/java/hudson/plugins/nunit/NUnitIntegrationTest.java
@@ -11,16 +11,23 @@
public class NUnitIntegrationTest extends HudsonTestCase {
- @Bug(5673)
- @LocalData
- public void testIssue5673() throws Exception {
- FreeStyleProject project = (FreeStyleProject) hudson.getItem("5673");
- FreeStyleBuild build = project.scheduleBuild2(0).get();
- assertBuildStatus(Result.UNSTABLE, build);
- AbstractTestResultAction action = build.getAction(AbstractTestResultAction.class);
- // For some reason the total count returned is 1338 but the number of tests
- // displayed in Jenkins when run outside test is 1355 (which is correct)
- // Very strange......
- assertTrue("The number of test counts should be larger than 1330", action.getTotalCount() > 1330);
- }
+ @Bug(5673)
+ @LocalData
+ public void testIssue5673() throws Exception {
+ FreeStyleProject project = (FreeStyleProject) hudson.getItem("5673");
+ FreeStyleBuild build = project.scheduleBuild2(0).get();
+ assertBuildStatus(Result.UNSTABLE, build);
+ AbstractTestResultAction action = build.getAction(AbstractTestResultAction.class);
+ assertEquals("The number of tests is not correct", 1355, action.getTotalCount());
+ }
+
+ @Bug(9246)
+ @LocalData
+ public void testIssue9246() throws Exception {
+ FreeStyleProject project = (FreeStyleProject) hudson.getItem("9246");
+ FreeStyleBuild build = project.scheduleBuild2(0).get();
+ assertBuildStatus(Result.UNSTABLE, build);
+ AbstractTestResultAction action = build.getAction(AbstractTestResultAction.class);
+ assertEquals("The number of tests is not correct", 5454, action.getTotalCount());
+ }
}
View
BIN  src/test/resources/hudson/plugins/nunit/NUnitIntegrationTest/testIssue9246.zip
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.