Comments (7)
@stephanenicolas could you please a quick look at this and make a suggestion? Thanks!
from quality-tools-for-android.
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.
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.
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.
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.
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.
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)
- PIT mutation testing HOT 1
- PMD check doesn't seem to work (for gradle) HOT 2
- add selendroid
- support for JBehave?
- Findbugs classpath configuration HOT 2
- EasyMock / java.lang.NoClassDefFoundError: com/google/dexmaker/stock/ProxyBuilder HOT 1
- java.lang.NoClassDefFoundError: lombok/ast/AstVisitor HOT 1
- What's the operating system of these code test on? HOT 2
- androidTest with jacoco and robolectric with jacoco
- Can not execute SonarQube analys is: Unable to execute Sonar: Fail to parse the Surefire report
- Where is the espresso dependency for the maven setup HOT 2
- Task for PMD, Checkstyle, Findbugs
- classycle reports generation does not work
- Possible Error During Findbugs
- Maven build fails on Mac JDK 1.6 HOT 1
- Coverage on multi modules maven project
- Where is the Espresso Artifact for Maven?
- junit 4 is now supported
- UiAutomator + Gradle + Test Reports HOT 1
- Missing dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quality-tools-for-android.