Re: [java code coverage] does Jacoco consider if unit tests are out side of src/test/java

2018-12-17 Thread raj . selenium3
Hello Marc, sorry for late response. Its took me some time to come up with example. Let me explain you my problem. [image: sample.png] in the above pic, which is marked in black color is the actual business code and unit test is marked in red color. And Cucumber(BDD) tests are marked in blue

Re: [java code coverage] does Jacoco consider if unit tests are out side of src/test/java

2018-12-17 Thread Evgeny Mandrikov
On Monday, December 17, 2018 at 7:22:41 PM UTC+1, raj.seleni...@gmail.com wrote: > > Here my question is... where should I change the configuration to consider > the tests which are under *src/cucumber/java.* > Please find the attached pom.xml for more details. > pom.xml alone in absence of

Re: [java code coverage] does Jacoco consider if unit tests are out side of src/test/java

2018-12-17 Thread raj . selenium3
all these tests are executed successfully. I tried profile using "clean install -P acceptance-tests" but did not go well. Here is the code for ref. https://github.com/rajselenium3/jacoco -Raj On Tuesday, December 18, 2018 at 2:30:31 AM UTC+5:30, Evgeny Mandrikov wrote: > > > > On

[java code coverage] Re: Jacoco report for Cucumber Test

2018-12-17 Thread Balesh koijam
thanks for the explaination. Debuging does not give me much details, however i had updated the task script by adding some println as below: additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs) println additionalSourceDirs.size() println additionalSourceDirs.empty

[java code coverage] Re: Jacoco report for Cucumber Test

2018-12-17 Thread Balesh koijam
found the issue. it was with the path of the dirs and the file which i mentioned in my task script. i can see the reports with proper coverage. thanks mandrikov for the help. now i had updated to the below : additionalSourceDirs = files(sourceSets.main.allSource.srcDirs) sourceDirectories =

Re: [java code coverage] Re: jacoco-maven-plugin: Including test sources/classes in report

2018-12-17 Thread Andreas Sewe
Evgeny Mandrikov wrote: > To help us consider addition of such feature and its design, > please just add comment with links to other plugins that you provided > earlier in this thread. Done: https://github.com/jacoco/jacoco/issues/271. Also mentioned having a separate goal (test-report) as an

[java code coverage] Re: Jacoco report for Cucumber Test

2018-12-17 Thread Balesh koijam
Thanks Mandrikov for the reply, as mentioned above, the exec file that was generated was used to generate the coverage report using the Intellji feature, where i could see the reports looking good. with this , i am assuming that classes should be there to analyze. please correct me if my

[java code coverage] Re: Jacoco report for Cucumber Test

2018-12-17 Thread Evgeny Mandrikov
class files are not stored inside exec-file, location of class files used by IDE can be different from location of class files used by Gradle build, and is actually different as shown on below screenshot, And once again: since you have trouble with generation of report using Gradle task, then