Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway for the Coverage tool to dump all lines it instrument for a swf? #55

Closed
GoogleCodeExporter opened this issue Nov 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

We do not want to use FlexMojo to run the coverage test, so will directly use 
apparat to instrument a swf ile.
It will be nice if the Coverage tool to dump all lines it instrument for each 
class into a log file.


--Rui

Original issue reported on code.google.com by r...@ooyala.com on 13 Oct 2011 at 7:42

@GoogleCodeExporter
Copy link
Author

Please ask a question to the mailing list instead of reporting an issue. In 
fact you can make use of the Coverage tool to dump you all lines by attaching a 
listener to it.

The only question is how you call the Coverage tool, because it makes only 
sense to do this from within a Java/Scala application.

http://code.google.com/p/apparat/source/browse/apparat-core/src/main/scala/appar
at/tools/coverage/CoverageObserver.scala

http://code.google.com/p/apparat/source/browse/apparat-core/src/main/scala/appar
at/tools/coverage/Coverage.scala

val coverage = new Coverage.CoverageTool()
coverage.addObserver(new CoverageObserver { override def instrument(file: 
String, line: Int) { println("instrument file "+file+" line "+line) } })
coverage.configure(...)
coverage.run()

Original comment by joaebert on 14 Oct 2011 at 10:40

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant