-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: Recently we have enabled PTS which causes an error when trying to run testNg tests. ``` Execution failed for task ':core:testNg'. > Predictive Test Selection only supports JUnit Platform. ``` It has been pointed out that `TestNg` is supported through `junit-platform`. ref: https://docs.gradle.com/enterprise/predictive-test-selection/#_frameworks_and_languages I see no reason we shouldn't just use `junit-platform` overall as our default test framework launcher. ref: https://gradle.slack.com/archives/C05975D6V7H/p1701969512592219 Note that we are unable to add the testNg globally by default due to the following issue: junit-team/testng-engine#87 Modifications: - Added a test engine `testng` to testing runtime - Modified to always use `useJUnitPlatform()` Result: - We can run testNg tests with PTS enabled
- Loading branch information
Showing
4 changed files
with
13 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,10 @@ testing { | |
} | ||
} | ||
} | ||
|
||
dependencies { | ||
runtimeOnly(libs.junit.testng.engine) | ||
} | ||
} | ||
} | ||
} | ||
|