mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27: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 {
|
override fun affinity(project: Project, context: KobaltContext) : Int {
|
||||||
val result =
|
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
|
else 0
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue