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
@@ -40,58 +38,40 @@ To generate the coverage reports run
40
38
$ sbt coverageReport
41
39
```
42
40
43
-
Coverage reports will be in `target/scala-<scala-version>/scoverage-report`. There are HTML and XML reports. The XML is useful if you need to programatically use the results, or if you're writing a tool.
44
-
45
-
If you're running the coverage reports from within an sbt console session (as
46
-
opposed to one command per sbt launch), then the `coverage` command is sticky. To
47
-
turn it back off when you're done running reports, use the `coverageOff` command or reset `coverageEnabled` with `set coverageEnabled := false`.
48
-
49
-
Sample project with scoverage in both sbt and maven - [the scoverage samples project](https://github.com/scoverage/sbt-scoverage-samples).
50
-
51
-
## Notes on upgrading to version 1.6.x
52
-
* ´coverageCleanSubprojectFiles´ key has been removed
53
-
* scala version 2.12+ is required as a minimum (due to scoverage suppport)
54
-
55
-
## Notes on upgrading to version 1.6.0
56
-
57
-
*`coverageAggregate` aggregates raw coverage data, not coverage xml reports for modules.
58
-
There is no requirement to generate individual coverage reports for modules (`coverageReport`)
59
-
before generating aggregated report (`coverageAggregate`).
60
-
61
-
If only aggregated report is required, not executing `coverageReport` can reduce the build time significantly.
62
-
63
-
## Notes on upgrading to version 1.3.0
64
-
65
-
* The object containing the keys has changed from nested to top level so you might need to adjust the import. It's also an auto plugin now, so you might not need the import at all.
66
-
* There is an issue syncing the binary with the sbt-plugin-releases repo, so in the meantime add `resolvers += Resolver.url("scoverage-bintray", url("https://dl.bintray.com/sksamuel/sbt-plugins/"))(Resolver.ivyStylePatterns)` to your build.
67
-
68
-
## Notes on upgrading to version 1.0.0
41
+
Coverage reports will be in your `target/scala-<scala-version>/scoverage-report`
42
+
directory. There are HTML and XML reports. The XML is useful if you need to
43
+
programatically use the results, or if you're writing a tool.
69
44
70
-
If you are upgrading from 0.99.x then you must remove the `instrumentSettings` from your build.sbt or Build.scala, as that is no longer needed.
45
+
**NOTE**: If you're running the coverage reports from within an sbt console
46
+
session (as opposed to one command per sbt launch), then the `coverage` command
47
+
is sticky. To turn it back off when you're done running reports, use the
48
+
`coverageOff` command or reset `coverageEnabled` with `set coverageEnabled :=
49
+
false`.
71
50
72
-
Next, the keys have been renamed slightly. The new names begin with coverageXXX, eg coverageExcludedPackages and some have had their full name changed. You can see a full list of keys by opening the object ScoverageKeys.
51
+
### Multi project reports
73
52
74
-
## Multi project reports
53
+
By default, scoverage will generate reports for each project separately. You can
54
+
merge them into an aggregated report by using the following:
75
55
76
-
By default, scoverage will generate reports for each project separately. You can merge them into an aggregated report by invoking `sbt coverageAggregate`.
77
-
78
-
(Note, you must do this after all the coverage data is complete as a separate command, so you cannot do `sbt coverage test coverageAggregate` (at least until a way around this is found).)
56
+
```
57
+
$ sbt coverageAggregate
58
+
```
79
59
80
-
(You do not need to run `coverageReport` before `coverageAggregate`; it aggregates over the sub-projects' coverage data directly, not the report xml.)
60
+
**NOTE**: You do not need to run `coverageReport` before `coverageAggregate`; it
61
+
aggregates over the sub-projects' coverage data directly, not the report xml.
81
62
82
-
## Exclude classes and packages
63
+
###Exclude classes and packages
83
64
84
-
You can exclude classes from being considered for coverage measurement by providing semicolon-separated list of
85
-
regular expressions.
65
+
You can exclude classes from being considered for coverage measurement by
66
+
providing semicolon-separated list of regular expressions.
[Codacy](https://www.codacy.com) integrates with your favorite coverage tool to provide an in-depth overlook of your project status. Scoverage information can be integrated into Codacy through the [sbt-codacy-coverage plugin](https://github.com/codacy/sbt-codacy-coverage).
118
+
[Codacy](https://www.codacy.com) integrates with your favorite coverage tool to
119
+
provide an in-depth overlook of your project status. scoverage information can
If you have an open source project then you can add code coverage metrics with the excellent website https://coveralls.io/ Scoverage will integrate with coveralls using the [sbt-coveralls](https://github.com/scoverage/sbt-coveralls) plugin.
134
-
135
-
### Plugin for SonarQube
125
+
If you have an open source project then you can add code coverage metrics with
126
+
the [Coveralls](https://coveralls.io/). scoverage will integrate with coveralls
127
+
using the [sbt-coveralls](https://github.com/scoverage/sbt-coveralls) plugin.
136
128
137
-
If you want to visually browse statement coverage reports then use this [plugin for SonarQube](https://github.com/RadoBuransky/sonar-scoverage-plugin).
138
-
It allows you to review overall project statement coverage as well as dig deeper into sub-modules, directories and
139
-
source code files to see uncovered statements. Statement coverage measurement can become an integral part of your
140
-
team's continuous integration process and a required quality standard.
129
+
### Codecov
141
130
142
-
## License
143
-
```
144
-
This software is licensed under the Apache 2 license, quoted below.
131
+
You can integrate with [Codecov](https://about.codecov.io/) easily sending your
132
+
reports there via your CI. You can see an example of this here in
0 commit comments