Closed
Description
Our application's test coverage for Robot Framework tests is measured with JaCoCo. When using Selenium2Library-java in run (as Maven dependency), getting errors about failing instrumentation.
E.g.
java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/github/markusbernhardt/selenium2library/keywords/Selenium2LibraryEnhancement.
Caused by: java.lang.IllegalStateException: Missing or invalid stackmap frames.
java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/github/markusbernhardt/selenium2library/keywords/Waiting.
Caused by: java.lang.IllegalStateException: Missing or invalid stackmap frames.
java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/github/markusbernhardt/selenium2library/keywords/TableElement.
Caused by: java.lang.IllegalStateException: Missing or invalid stackmap frames.
etc.
Full stack traces available at:
http://pastebin.com/ZPJbHJaf
Workaround for us is just to tell JaCoCo to include application packages, but it might still be good to figure out why instrumentation fails in library.
Metadata
Metadata
Assignees
Labels
No labels