Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryan-williams/coverage-test
Test Coveralls+Maven+Scala project
https://github.com/ryan-williams/coverage-test
Last synced: about 2 months ago
JSON representation
Test Coveralls+Maven+Scala project
- Host: GitHub
- URL: https://github.com/ryan-williams/coverage-test
- Owner: ryan-williams
- Created: 2016-08-23T17:04:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-24T03:21:01.000Z (over 8 years ago)
- Last Synced: 2024-10-20T07:45:21.561Z (3 months ago)
- Language: Scala
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# coverage-test
Reproduce coveralls-maven-plugin problem:```bash
git clone https://github.com/ryan-williams/coverage-test.git
cd coverage-test
mvn clean test jacoco:report coveralls:report
```Observe error:
```
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.2.0:report (default-cli) on project test: Build error: Line number 7 is greater than the source file src/main/scala/org/foo/B.scala size -> [Help 1]
```[A.scala:7](https://github.com/ryan-williams/coverage-test/blob/607d2486e42ea4d7a24ac3c5f23e75fc96898f1b/src/main/scala/org/foo/A.scala#L7) is where `case class A` is declared, and for some reason that is being looked up in [B.scala](https://github.com/ryan-williams/coverage-test/blob/607d2486e42ea4d7a24ac3c5f23e75fc96898f1b/src/main/scala/org/foo/B.scala), which is only 6 lines long.
The error goes away if either class is made non-`case` or if the `val foo` in `B` is removed.