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

2018-12-18 Thread raj . selenium3
Thanks.

actually it was my fault.. I did not execute profile "clean install -P 
acceptance-tests" properly:(

-Raj
 
On Tuesday, December 18, 2018 at 1:50:06 PM UTC+5:30, Evgeny Mandrikov 
wrote:
>
>
>
> On Tuesday, December 18, 2018 at 4:47:59 AM UTC+1, raj.se...@gmail.com 
>  wrote:
>>
>> 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 
>> 
>>
>
> Once again - why do you believe that it did not go well?
>
> Execution of "clean install -P acceptance-tests" produces two reports
> one in "target/site/jacoco/index.html"
>
> [image: 1.png]
>
>
> and another one in "target/site/jacoco-it/index.html"
>
> [image: 2.png]
>
>
> exactly as declared in your "pom.xml" by configurations of "report" and 
> "report-integration".
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/31a8de1d-c24b-4f9f-8b51-a958d7f10df0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-12-18 Thread Evgeny Mandrikov


On Tuesday, December 18, 2018 at 4:47:59 AM UTC+1, raj.seleni...@gmail.com 
wrote:
>
> 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 
> 
>

Once again - why do you believe that it did not go well?

Execution of "clean install -P acceptance-tests" produces two reports
one in "target/site/jacoco/index.html"

[image: 1.png]


and another one in "target/site/jacoco-it/index.html"

[image: 2.png]


exactly as declared in your "pom.xml" by configurations of "report" and 
"report-integration".

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/c577f9c7-4c66-4da4-8439-93b6bfa26077%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Monday, December 17, 2018 at 7:22:41 PM UTC+1, raj.se...@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 other files is not a complete example and 
> can't be executed / debugged !
>
> Since we can't execute it, we don't know what you see when you execute 
> build.
> And so why do you believe that something needs to be changed ?
>
> And again same question as was already asked by Marc:
> Are you sure that these tests are executed ? Why you execute "clean 
> install" whereas "maven-failsafe-plugin" is declared in "acceptance-tests" 
> profile ? Aren't you supposed to activate this profile using "clean install 
> -P acceptance-tests" ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/d2ec2ae3-1173-4bcf-a80d-d4a8c4592e92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 other files is not a complete example and can't 
be executed / debugged !

Since we can't execute it, we don't know what you see when you execute 
build.
And so why do you believe that something needs to be changed ?

And again same question as was already asked by Marc:
Are you sure that these tests are executed ? Why you execute "clean 
install" whereas "maven-failsafe-plugin" is declared in "acceptance-tests" 
profile ? Aren't you supposed to activate this profile using "clean install 
-P acceptance-tests" ?

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/242eb919-b2c3-4012-b812-6bdf4b0ce2c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 color.
when I go with *maven clean install *its considering only unit tests which 
are under *src/test/java. *

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.
 
Thanks
Raj

On Wednesday, November 28, 2018 at 3:27:27 AM UTC+5:30, Marc R. Hoffmann 
wrote:
>
> Hi Raj,
>
> the question is: are these unit tests executed?
>
> JaCoCo has no idea about JUnit or any other framework. It simply records 
> the execution of all classes loaded into the JVM.
>
> Regards,
> -marc
>
>
> On 27. Nov 2018, at 18:51, raj.se...@gmail.com  wrote:
>
>
> Hello,
>
> all my unit tests are out side of src/test/java. In this case, does Jacoco 
> recognize my unit tests? 
> plz help me in this regard.
>
> -Raj  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jacoco+un...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/e8390fcf-eb87-4a5d-bbd3-949b48a4b32a%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/4bf45085-8ff3-46fb-bf93-3c756efca644%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pom.xml
Description: XML document