You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: