|
1 | 1 | plugins { |
2 | | - id "org.ros2.rcljava" version "0.4.6" |
3 | | - id 'jacoco' |
4 | | - id 'com.github.kt3k.coveralls' version '2.8.1' |
| 2 | + id "org.ros2.rcljava" version "0.4.7" |
5 | 3 | } |
6 | 4 |
|
7 | 5 | apply plugin: 'org.ros2.rcljava' |
8 | | -apply plugin: 'jacoco' |
9 | 6 |
|
10 | 7 | sourceCompatibility = 1.7 |
11 | 8 | targetCompatibility = 1.7 |
@@ -38,45 +35,3 @@ ament { |
38 | 35 | } |
39 | 36 | } |
40 | 37 | } |
41 | | - |
42 | | - |
43 | | -test { |
44 | | - finalizedBy 'jacocoTestReport' |
45 | | -// dependsOn 'cleanTest' |
46 | | -} |
47 | | - |
48 | | -tasks.withType(Test) { |
49 | | - testLogging { |
50 | | - // set options for log level LIFECYCLE |
51 | | - events "passed", "skipped", "failed", "standardOut" |
52 | | - showExceptions true |
53 | | - exceptionFormat "full" |
54 | | - showCauses true |
55 | | - showStackTraces true |
56 | | - |
57 | | - // set options for log level DEBUG and INFO |
58 | | - debug { |
59 | | - events "started", "passed", "skipped", "failed", "standardOut", "standardError" |
60 | | - exceptionFormat "full" |
61 | | - } |
62 | | - info.events = debug.events |
63 | | - info.exceptionFormat = debug.exceptionFormat |
64 | | - |
65 | | - afterSuite { desc, result -> |
66 | | - if (!desc.parent) { // will match the outermost suite |
67 | | - def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" |
68 | | - def startItem = '| ', endItem = ' |' |
69 | | - def repeatLength = startItem.length() + output.length() + endItem.length() |
70 | | - println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength)) |
71 | | - } |
72 | | - } |
73 | | - } |
74 | | -} |
75 | | - |
76 | | -jacocoTestReport { |
77 | | - reports { |
78 | | - xml.enabled = true // coveralls plugin depends on xml format report |
79 | | - html.enabled = true |
80 | | - } |
81 | | - finalizedBy 'coveralls' |
82 | | -} |
0 commit comments