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
+22-19Lines changed: 22 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -14,35 +14,36 @@ scoverage-maven-plugin is a plugin for Maven that integrates the scoverage code
14
14
15
15
mostly used mojos:
16
16
17
-
-**[check](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/check-mojo.html)** goal compiles classes with instrumentation, runs unit tests and checks coverage,
17
+
-**[check](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/check-mojo.html)** goal compiles classes with instrumentation, runs unit tests and checks coverage,
18
18
19
-
-**[report](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/report-mojo.html)** goal compiles classes with instrumentation, runs unit tests and generates reports,
19
+
-**[report](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/report-mojo.html)** goal compiles classes with instrumentation, runs unit tests and generates reports,
20
20
21
-
-**[integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/integration-check-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and checks coverage,
21
+
-**[integration-check](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/integration-check-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and checks coverage,
22
22
23
-
-**[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/integration-report-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and generates reports,
23
+
-**[integration-report](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/integration-report-mojo.html)** goal compiles classes with instrumentation, runs unit and integration tests and generates reports,
24
24
25
25
additional, sometimes useful, mojos:
26
26
27
-
-**[test](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/test-mojo.html)** goal compiles classes with instrumentation and runs unit tests,
27
+
-**[test](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/test-mojo.html)** goal compiles classes with instrumentation and runs unit tests,
28
28
29
-
-**[integration-test](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/integration-test-mojo.html)** goal compiles classes with instrumentation and runs unit and integration tests,
29
+
-**[integration-test](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/integration-test-mojo.html)** goal compiles classes with instrumentation and runs unit and integration tests,
30
30
31
-
-**[check-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/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).
31
+
-**[check-only](http://scoverage.github.io/scoverage-maven-plugin/2.0.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
32
33
-
-**[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/report-only-mojo.html)** goal generates reports using coverage data generated earlier in the build (by **test**, **check**, **integration-test** or **integration-check** goal),
33
+
-**[report-only](http://scoverage.github.io/scoverage-maven-plugin/2.0.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
34
35
-
-**[package](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/package-mojo.html)** goal generates artifact file containing instrumented classes (e.g. for testing outside of the Maven build),
35
+
-**[package](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/package-mojo.html)** goal generates artifact file containing instrumented classes (e.g. for testing outside of the Maven build),
36
36
37
37
internal mojos:
38
38
39
-
-**[pre-compile](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/pre-compile-mojo.html)** and **[post-compile](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/post-compile-mojo.html)** are internal goals, they configure Maven build in forked `scoverage` life cycle; don't use them.
39
+
-**[pre-compile](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/pre-compile-mojo.html)** and **[post-compile](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/post-compile-mojo.html)** are internal goals, they configure Maven build in forked `scoverage` life cycle; don't use them.
|[report](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/report-mojo.html)| When not using integration tests (most cases) |
298
-
|[integration-report](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/integration-report-mojo.html)| When using integration tests |
299
-
|[report-only](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/report-only-mojo.html)| When coverage data was already generated (usually by [check](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/check-mojo.html) or [integration-check](http://scoverage.github.io/scoverage-maven-plugin/1.4.11/integration-check-mojo.html) mojo) |
|[report](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/report-mojo.html)| When not using integration tests (most cases)|
299
+
|[integration-report](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/integration-report-mojo.html)| When using integration tests|
300
+
|[report-only](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/report-only-mojo.html)| When coverage data was already generated (usually by [check](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/check-mojo.html) or [integration-check](http://scoverage.github.io/scoverage-maven-plugin/2.0.0/integration-check-mojo.html) mojo) |
300
301
301
302
##### Customizing code instrumentation
302
303
@@ -464,8 +465,10 @@ If you want to set multiple properties from within `<additionalForkedProjectProp
464
465
465
466
466
467
## Examples
468
+
There are many example projects in [integration tests](src/it) directory. To run them, execute `mvn integration-test`.
469
+
To execute only one of them, execute `mvn integration-test -Dinvoker.test=test_aggregate`, where `test_aggregate` is the name of the directory with the example project.
467
470
468
-
There are many [example projects](https://github.com/scoverage/scoverage-maven-samples/tree/scoverage-maven-samples-1.4.11/).
471
+
Also, there are many [example projects](https://github.com/scoverage/scoverage-maven-samples/tree/scoverage-maven-samples-1.4.11/) for older versions of the plugin in a separate repo.
0 commit comments