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

Status bar displays "Failed to run tests" even though tests were run successfully #99

Closed
bobderrico opened this issue Jan 16, 2018 · 5 comments
Assignees
Labels

Comments

@bobderrico
Copy link

When I click "Run Test," the status bar displays "Running tests..." and the changes to "Failed to run tests" after the testing has finished running.

However, the tests to did run successfully. I see the correct reporting on test cases in the code and can click the icon to see test results.

When I look at the test output, I see several lines start with Error occurred. This all prefix expected logging output during the test. This output is generated by calls to an SLF4J Logger method. For example:

Error occured: [main] INFO com.some.packages.ClassName - Some Message

(also worth noting that "occurred" is spelled incorrectly in the message).

I suspect the plugin is seeing these log messages and assuming there was a failure with running the test, causing "Failed to run tests" to be incorrectly reported.

@sswane
Copy link

sswane commented Feb 9, 2018

👍 The same thing is happening to me. The tests run successfully and the status bar text is green, but it says "Failed to run tests". I also see in the output Error occured: followed by complaints about multiple SLF4J bindings. What is interesting though is when I run mvn clean install on my project, I do not see those errors in the console.

@ansyral ansyral added the bug label Feb 9, 2018
@davidaorr
Copy link

I am experiencing the same issue.

@roguekale
Copy link

I am having the same issue.

@ansyral
Copy link
Collaborator

ansyral commented Feb 26, 2018

Seems the test itself would output something to system.err. I would add some label to tell errors outputted by junit runner and those from the tests themselves.

@ansyral ansyral self-assigned this Feb 26, 2018
@ansyral
Copy link
Collaborator

ansyral commented Feb 26, 2018

5cf1acc

@ansyral ansyral closed this as completed Feb 26, 2018
@ansyral ansyral mentioned this issue Mar 6, 2018
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants