Giter Club home page Giter Club logo

Comments (7)

rp123 avatar rp123 commented on September 27, 2024

@stephanenicolas could you please a quick look at this and make a suggestion? Thanks!

from quality-tools-for-android.

stephanenicolas avatar stephanenicolas commented on September 27, 2024

Hi rp123,

No, you can't make emma work with Robolectric. At least, I couldn't and I
remember I tried hard. But I think that the way Robolectric manipulates
bytecode is not compatible with the way Emma does it.

For Cobertura and monkey runner, I really can't say. To my mind, what is
gonna bug is that cobertura must provide a offline mode for this to work.
Apparently, it can run this way :
http://rwatsh.blogspot.fr/2008/03/emma-vs-cobertura.html
So yes, it should work, but cobertura is a bit difficult to handle as it as
its own lifecycle.

On the hand, I think all of this could be easier with Jacoco. It has
offline instrumentation working, and seems to work with all technologies.

Really sorry for the delay, I didn't have much time up to now to work on
QAT again.
Stéphane

2013/10/7 rp123 [email protected]

@stephanenicolas https://github.com/stephanenicolas could you please a
quick look at this and make a suggestion? Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-25779337
.

Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - mobilite.octo.com
blog.octo.com - www.usievents.com
...........................................................

from quality-tools-for-android.

rp123 avatar rp123 commented on September 27, 2024

Thanks Stephane for your detailed response. I'll give Jacoco a try based on your recommendation. Will let you know how it goes.

from quality-tools-for-android.

stephanenicolas avatar stephanenicolas commented on September 27, 2024

We would be pleased to have a pull request for that. In that case, open a new ticket please.

I think there is something to dig here. This could turn into a measure of completion of monkey testing : having covered enough code...

from quality-tools-for-android.

stephanenicolas avatar stephanenicolas commented on September 27, 2024

That's for maven, right ? Otherwise with gradle, just forget for now.

2013/10/7 rp123 [email protected]

Thanks Stephane for your detailed response. I'll give Jacoco a try based
on your recommendation. Will let you know how it goes.


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-25846874
.

Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - mobilite.octo.com
blog.octo.com - www.usievents.com
...........................................................

from quality-tools-for-android.

rp123 avatar rp123 commented on September 27, 2024

Yes, this was with Maven. I tried the config file from (https://github.com/stephanenicolas/Quality-Tools-for-Android/blob/master/android-sample-robolectric-tests/pom.xml and https://github.com/stephanenicolas/Quality-Tools-for-Android/blob/master/pom.xml), but it seems to be using sonar. I am able to generate jacoco.exec file, but was looking for a way to generate HTML report outside of Sonar.

I also noticed that the plugin had runtime, I was wondering if this was still correct in case of offline instrumentation?

Is there something different I need to do for offline instrumentation?

from quality-tools-for-android.

stephanenicolas avatar stephanenicolas commented on September 27, 2024

Hi rp123,

This config works offline ! ;)
I think there is a report goal to the jacoco plugin that you can use to
generate a report.

It should work either in post test phase or in reporting phase. Probably
the latter. There should be no problem to get it running with the exec file
you got already.

S.
Le 8 oct. 2013 20:13, "rp123" [email protected] a écrit :

Yes, this was with Maven. I tried the config file from (
https://github.com/stephanenicolas/Quality-Tools-for-Android/blob/master/android-sample-robolectric-tests/pom.xmland
https://github.com/stephanenicolas/Quality-Tools-for-Android/blob/master/pom.xml),
but it seems to be using sonar. I am able to generate jacoco.exec file, but
was looking for a way to generate HTML report outside of Sonar.

I also noticed that the plugin had runtime, I was wondering if this was
still correct in case of offline instrumentation?

Is there something different I need to do for offline instrumentation?


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-25914037
.

from quality-tools-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.