TNG / junit-dataprovider

A TestNG like dataprovider runner for JUnit with many additional features
Apache License 2.0
246 stars 164 forks source link

Fix coveralls report #125

Closed aaschmid closed 4 years ago

aaschmid commented 4 years ago

See Build Scans (https://scans.gradle.com/s/exgu7vzoe5t5c) or local build:

Error while creating report
> Error while analyzing /home/travis/build/TNG/junit-dataprovider/junit-jupiter-params/build/classes/java/main/com/tngtech/junit/dataprovider/DataProvider.class.
  > Can't add different class with same name: com/tngtech/junit/dataprovider/DataProvider

(This is also the problem on master)

aaschmid commented 4 years ago

Reason seems to be because FQDN com.tngtech.junit.dataprovider.DataProvider exists twice in junit-jupiter and junit-jupiter-params project.

Possible workarounds:

  1. remove classes from jacocoRootReport -> this may influence coverage analyze
  2. exclude one of the two classes manually ...

Update on workaround 1: Causes coverage analyze to report No class files specified. Update on workaround 2: works and is maybe good enough ...

aaschmid commented 4 years ago

Remaining topic is that since commit 92cef54 no integTest.exec is generated for junit-jupiter and junit-jupiter-params subprojects. Strangely, for junit4 it is generated ...

Update: Rebased on appropriate version before. It is good and working now, see https://coveralls.io/builds/27837805 :-)