Handling Test Cases in Different Project Directory

21 views
Skip to first unread message

cdt...@gmail.com

unread,
May 29, 2020, 1:17:25 PM5/29/20
to JaCoCo and EclEmma Users

Hey Jacoco community, we have a unique situation

Example - >

 

We have multiple java projects, in separate dir.  Also our JUnit test cases are in its own Proj directory as well

 

Parent Dir 1

                Proj1

                Proj2

                Proj3

                UnitTestProj

               

We are trying to just get a simple coverage report using the cli as a proof of concept

 

You can see our Junit Tests are not colocated to the project where the source and class files are

 

I know we can set where our source and class files are but how would jacoco know where the unit tests are if they are not part of the source proj?

 

I have a development team who has this setup and they get:

 

                [WARN] No execution data files provided.

                [INFO] Analyzing 775 classes.

 

 

 

java -cp jacococli.jar org.jacoco.cli.internal.Main report --classfiles fullpath --html C:\projroot --name projroot.html --sourcefiles fullpath  >C:\ConsoleOutput.txt

Reply all
Reply to author
Forward
0 new messages