You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-22Lines changed: 21 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -15,36 +15,35 @@ scoverage-maven-plugin is a plugin for Maven that integrates the scoverage code
15
15
16
16
mostly used mojos:
17
17
18
-
-**[check](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/check-mojo.html)** goal compiles classes with instrumentation, runs unit tests and checks coverage,
18
+
-**[check](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/check-mojo.html)** goal compiles classes with instrumentation, runs unit tests and checks coverage,
19
19
20
-
-**[report](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/report-mojo.html)** goal compiles classes with instrumentation, runs unit tests and generates reports,
20
+
-**[report](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/report-mojo.html)** goal compiles classes with instrumentation, runs unit tests and generates reports,
21
21
22
-
-**[integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/integration-check-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and checks coverage,
22
+
-**[integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/integration-check-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and checks coverage,
23
23
24
-
-**[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/integration-report-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and generates reports,
24
+
-**[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/integration-report-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and generates reports,
25
25
26
26
additional, sometimes useful, mojos:
27
27
28
-
-**[test](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/test-mojo.html)** goal compiles classes with instrumentation and runs unit tests,
28
+
-**[test](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/test-mojo.html)** goal compiles classes with instrumentation and runs unit tests,
29
29
30
-
-**[integration-test](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/integration-test-mojo.html)** goal compiles classes with instrumentation and runs unit and integration tests,
30
+
-**[integration-test](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/integration-test-mojo.html)** goal compiles classes with instrumentation and runs unit and integration tests,
31
31
32
-
-**[check-only](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/check-only-mojo.html)** goal only checks coverage using coverage data generated earlier in the build (by **test**, **report**, **integration-test** or **integration-report** goal).
32
+
-**[check-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/check-only-mojo.html)** goal only checks coverage using coverage data generated earlier in the build (by **test**, **report**, **integration-test** or **integration-report** goal).
33
33
34
-
-**[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/report-only-mojo.html)** goal generates reports using coverage data generated earlier in the build (by **test**, **check**, **integration-test** or **integration-check** goal),
34
+
-**[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/report-only-mojo.html)** goal generates reports using coverage data generated earlier in the build (by **test**, **check**, **integration-test** or **integration-check** goal),
35
35
36
-
-**[package](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/package-mojo.html)** goal generates artifact file containing instrumented classes (e.g. for testing outside of the Maven build),
36
+
-**[package](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/package-mojo.html)** goal generates artifact file containing instrumented classes (e.g. for testing outside of the Maven build),
37
37
38
38
internal mojos:
39
39
40
-
-**[pre-compile](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/pre-compile-mojo.html)** and **[post-compile](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/post-compile-mojo.html)** are internal goals, they configure Maven build in forked `scoverage` life cycle; don't use them.
40
+
-**[pre-compile](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/pre-compile-mojo.html)** and **[post-compile](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/post-compile-mojo.html)** are internal goals, they configure Maven build in forked `scoverage` life cycle; don't use them.
Plugin supports Scala 2.10.xand 2.11.x versions by automatically loading and configuring scalac-scoverage-plugin_2.10or scalac-scoverage-plugin_2.11 Scalac SCoverage Plugin artifact. For this to work Scala version has to be set. It can be done by defining `scalaVersion` plugin configuration parameter or `scala.version` project property. Without this setting, coverage will not be calculated.
72
+
Plugin supports Scala 2.10.x, 2.11.x, 2.12.x and 2.13.x versions by automatically loading and configuring scalac-scoverage-plugin_2.10, scalac-scoverage-plugin_2.11, scalac-scoverage-plugin_2.12 or scalac-scoverage-plugin_2.13 Scalac SCoverage Plugin artifact. For this to work Scala version has to be set. It can be done by defining `scalaVersion` plugin configuration parameter or `scala.version` project property. Without this setting, coverage will not be calculated.
74
73
75
74
```xml
76
75
<project>
77
76
<properties>
78
-
<scala.version>2.11.8</scala.version>
77
+
<scala.version>2.13.0</scala.version>
79
78
</properties>
80
79
</project>
81
80
```
@@ -91,7 +90,7 @@ or
91
90
<artifactId>scoverage-maven-plugin</artifactId>
92
91
<version>${scoverage.plugin.version}</version>
93
92
<configuration>
94
-
<scalaVersion>2.11.8</scalaVersion>
93
+
<scalaVersion>2.13.0</scalaVersion>
95
94
<!-- other parameters -->
96
95
</configuration>
97
96
</plugin>
@@ -123,7 +122,7 @@ It can be configured by defining `scalacPluginVersion` plugin configuration para
|[report](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/report-mojo.html)| When not using integration tests (most cases) |
297
-
|[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/integration-report-mojo.html)| When using integration tests |
298
-
|[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/report-only-mojo.html)| When coverage data was already generated (usually by [check](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/check-mojo.html) or [integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.3.0/integration-check-mojo.html) mojo) |
295
+
|[report](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/report-mojo.html)| When not using integration tests (most cases) |
296
+
|[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/integration-report-mojo.html)| When using integration tests |
297
+
|[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/report-only-mojo.html)| When coverage data was already generated (usually by [check](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/check-mojo.html) or [integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.4.0/integration-check-mojo.html) mojo) |
299
298
300
299
##### Customizing code instrumentation
301
300
@@ -459,7 +458,7 @@ If you want to set multiple properties from within `<additionalForkedProjectProp
459
458
460
459
## Examples
461
460
462
-
There are many [example projects](https://github.com/scoverage/scoverage-maven-samples/tree/scoverage-maven-samples-1.3.0/).
461
+
There are many [example projects](https://github.com/scoverage/scoverage-maven-samples/tree/scoverage-maven-samples-1.4.0/).
0 commit comments