Skip to content

[java-junit] show annotations on PR "Files changed" tab next to code line related to the failure  #208

@atsu85

Description

@atsu85

Current situation

Currently show annotations on pull request "Files changed" tab next to code line related to the failure works nicely when JUnit report is generated for example on NodeJS using jest-junit reporter:
image

but the same feature doesn't work on Java Virutal Machine (Java/Kotlin/Groovy/...)

Problem

Currently the code that parses exception stack trace lines fails to parse the line if the line:

  • starts with whitespace (maybe there are some frameworks that generate JUnit xml report file where stack trace lines don't start with whitespaces, but that isn't the case for gradle with JUnit - probably dominant behavior)
  • when running on Java Runtime Environment version 9 or newer, when application code is loaded with custom ClassLoader (like Spring Boot) or when application source code is in Java 9 module

Example of stack trace line, that isn't parsed:

  at app//com.foo.Main.run(Main.java:101)

Expected behaviour

On JVM (Java/Kotlin/Groovy/...) annotations should be added to pull request "Files changed" tab next to code line related to the failure based on stack trace

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