File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
buildSrc/src/main/java/org/springframework/boot/build/testing Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2023 the original author or authors.
2
+ * Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,9 +40,10 @@ public void apply(Project project) {
40
40
.getSharedServices ()
41
41
.registerIfAbsent ("testResultsOverview" , TestResultsOverview .class , (spec ) -> {
42
42
});
43
- project .getTasks ()
44
- .withType (Test .class ,
45
- (test ) -> test .addTestListener (new FailureRecordingTestListener (testResultsOverview , test )));
43
+ project .getTasks ().withType (Test .class , (test ) -> {
44
+ test .usesService (testResultsOverview );
45
+ test .addTestListener (new FailureRecordingTestListener (testResultsOverview , test ));
46
+ });
46
47
}
47
48
48
49
private final class FailureRecordingTestListener implements TestListener {
You can’t perform that action at this time.
0 commit comments