Skip to content

Commit ce3332b

Browse files
author
Marcel Schnelle
committed
Use Detail level passed in from the JUnit5Extension in launcher
1 parent 9cd143f commit ce3332b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnit5Test.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,14 @@ class AndroidJUnit5Test extends JavaExec {
174174
}
175175

176176
private List<String> buildArgs(project, junitExtension, reportsDir, testRootDirs) {
177+
def args = []
177178

178-
def args = ['--details tree']
179+
args.add("--details ${junitExtension.details.toString()}")
179180

180181
addSelectors(project, junitExtension.selectors, testRootDirs, args)
181182
addFilters(junitExtension.filters, args)
182183

183-
args.add('--reports-dir')
184+
args.add("--reports-dir")
184185
args.add(reportsDir.getAbsolutePath())
185186

186187
return args

android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ class AndroidJUnitPlatformExtension extends JUnitPlatformExtension {
1919
/**
2020
* The version of JUnit Jupiter to use.
2121
*
22-
* Defaults to {@code '5.0.0-M4'}.
22+
* Defaults to {@code '5.0.0-M5'}.
2323
*/
2424
String jupiterVersion = '5.0.0-M5'
2525

2626
/**
2727
* The version of JUnit Vintage Engine to use.
2828
*
29-
* Defaults to {@code '4.12.0-M4'}.
29+
* Defaults to {@code '4.12.0-M5'}.
3030
*/
3131
String vintageVersion = '4.12.0-M5'
3232
}

0 commit comments

Comments
 (0)