mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
Better JUnit 5 detection.
This commit is contained in:
parent
55bba514b3
commit
43bb71b486
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ class JUnit5Runner @Inject constructor(kFiles: KFiles) : GenericTestRunner() {
|
|||
|
||||
override fun affinity(project: Project, context: KobaltContext) : Int {
|
||||
val result =
|
||||
if (project.testDependencies.any { it.id.contains("jupiter") }) IAffinity.DEFAULT_POSITIVE_AFFINITY + 100
|
||||
if (project.testDependencies.any { it.id.contains("junit5") || it.id.contains("jupiter") })
|
||||
IAffinity.DEFAULT_POSITIVE_AFFINITY + 100
|
||||
else 0
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue