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

Preventing JUnits from having methods interferes with emma #275

Closed
dgradl opened this issue Mar 26, 2012 · 3 comments
Closed

Preventing JUnits from having methods interferes with emma #275

dgradl opened this issue Mar 26, 2012 · 3 comments

Comments

@dgradl
Copy link
Contributor

dgradl commented Mar 26, 2012

Curious to see the code that is executed (covered) by my Cucumber tests I attempted to run a code coverage analysis with Emma (eclemma to be more specific - i.e. the eclipse plugin). It seems that it must be doing some augmentation of the test classes and introducing its own methods, because when I attempted to run this against my Cucumber JUnits it failed with the error message: Classes annotated with @RunWith(Cucumber.class) must not define any methods.

Yea its sort of an edge case. I'm not even sure that code coverage via Cucumber is a metric that is meaningful. However, I'm also not sure if the Cucumber runner needs to be so strict about preventing methods on the JUnit runner. Perhaps it should just prevent JUnit annotated methods from being on the JUnit class.

@aslakhellesoy
Copy link
Contributor

Dupe of #258, which was fixed in 1.0.0.RC23.

See https://github.com/cucumber/cucumber-jvm/blob/master/History.md

Please always report what version you are using - now I just have to guess that you're using something < 1.0.0.RC23.

@dgradl
Copy link
Contributor Author

dgradl commented Mar 27, 2012

1.0.0.RC21. Will do better review prior to opening.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants