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

Can't run test cases #508

Closed
rileyma opened this issue Dec 6, 2018 · 3 comments
Closed

Can't run test cases #508

rileyma opened this issue Dec 6, 2018 · 3 comments

Comments

@rileyma
Copy link

rileyma commented Dec 6, 2018

Installed Java Test Runner.
Tagged test methods with Test tag.
imported org.junit.;
imported org.mockito.Mockito.
;

Can't run any of the tests from the method level. There's no "Run" button on either of the methods.

@jdneo
Copy link
Member

jdneo commented Dec 7, 2018

Looks duplicated with #470

Will your problem be solved according to the workaround mentioned in #470?

@JasonHenriksen
Copy link

JasonHenriksen commented Dec 26, 2018

I used the classpath fix in #470 which caused the test to appear. That part definitely helped.

However, when I attempt to run the test is always says "skipped".
It looks like the compiled tests don't go where the runner is expecting them? There was an error saying "Can't have test code compiled to the same directory as main code" so I'm trying to sort out if the .classpath file is pointing things to a directory that they're not being searched for.
( Just leaving this for posterity as I try to find a workaround for the tests skipping)

Eventually, I found that my test was in a class that had a base class, which also had a base class. There was a @before attribute in both base classes that was causing a silent failure. Once I commented out the base class attributes, the test was able to launch, hit a break point and then fail in a way that I could see.

@no-response
Copy link

no-response bot commented Mar 31, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Mar 31, 2019
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

3 participants