forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestNg test runner (com-lihaoyi#3813)
Fixes com-lihaoyi#3798, supersedes com-lihaoyi#3799 Not sure how this ever worked, but it seems like it works now Converted the example test in com-lihaoyi#3799 to a unit test. --------- Co-authored-by: Tobias Roeser <[email protected]>
- Loading branch information
Showing
7 changed files
with
98 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
contrib/testng/test/resources/demo/testng/src/foo/HelloTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package foo; | ||
|
||
import static org.testng.Assert.assertTrue; | ||
import org.testng.annotations.Test; | ||
|
||
public class HelloTests { | ||
|
||
@Test | ||
public void hello() throws Exception { | ||
System.out.println("Testing Hello"); | ||
Thread.sleep(1000); | ||
System.out.println("Testing Hello Completed"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
contrib/testng/test/resources/demo/testng/src/foo/WorldTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package foo; | ||
|
||
import static org.testng.Assert.assertTrue; | ||
import org.testng.annotations.Test; | ||
|
||
public class WorldTests { | ||
@Test | ||
public void world() throws Exception { | ||
System.out.println("Testing World"); | ||
Thread.sleep(1000); | ||
System.out.println("Testing World Completed"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
contrib/testng/test/resources/demo/testngGrouping/src/foo/HelloTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package foo; | ||
|
||
import static org.testng.Assert.assertTrue; | ||
import org.testng.annotations.Test; | ||
|
||
public class HelloTests { | ||
|
||
@Test | ||
public void hello() throws Exception { | ||
System.out.println("Testing Hello"); | ||
Thread.sleep(1000); | ||
System.out.println("Testing Hello Completed"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
contrib/testng/test/resources/demo/testngGrouping/src/foo/WorldTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package foo; | ||
|
||
import static org.testng.Assert.assertTrue; | ||
import org.testng.annotations.Test; | ||
|
||
public class WorldTests { | ||
@Test | ||
public void world() throws Exception { | ||
System.out.println("Testing World"); | ||
Thread.sleep(1000); | ||
System.out.println("Testing World Completed"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters