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

JUnit5-Example-Project does not generate HTML5-Report #340

Closed
klu2 opened this issue Feb 27, 2018 · 3 comments
Closed

JUnit5-Example-Project does not generate HTML5-Report #340

klu2 opened this issue Feb 27, 2018 · 3 comments

Comments

@klu2
Copy link

klu2 commented Feb 27, 2018

I cloned https://github.com/TNG/JGiven/tree/master/example-projects/junit5 into an empty gradle project; the jgiven.json file for the test is generated, but the HTML5-Report not.

Gradle says:

:compileJava NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava
:processTestResources NO-SOURCE
:testClasses
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
:junitPlatformTest

Test Class: net.klu2.JUnit5Test

 Scenario with JUnit5

   Given message "Hello JUnit"
    When handle message
    Then the result is Hello JUnit 5!


Test run finished after 1360 ms
[         2 containers found      ]
[         0 containers skipped    ]
[         2 containers started    ]
[         0 containers aborted    ]
[         2 containers successful ]
[         0 containers failed     ]
[         1 tests found           ]
[         0 tests skipped         ]
[         1 tests started         ]
[         0 tests aborted         ]
[         1 tests successful      ]
[         0 tests failed          ]

:test
:jgivenTestReport NO-SOURCE
:check
:build

BUILD SUCCESSFUL in 33s

Seems the NO-SOURCE is the problem, but I dont know where it comes from...

@janschaefer janschaefer added this to the v0.16.0 milestone May 20, 2018
@janschaefer janschaefer added JUnit5 and removed bug labels May 20, 2018
@janschaefer
Copy link
Contributor

Thanks. I can reproduce the issue.

@janschaefer
Copy link
Contributor

Turns out to be a bug in the default settings of the Gradle plugin. Thanks for reporting the issue!

@janschaefer
Copy link
Contributor

Actually it works when using the newest Gradle version that has built-in junit5 support. I will just update the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants