Skip to content

Library can't be instrumented with JaCoCo #22

Closed
@Hi-Fi

Description

@Hi-Fi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions