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

Unit tests inside src/test/java are not being recognized #16

Closed
rimolive opened this issue Sep 15, 2016 · 5 comments
Closed

Unit tests inside src/test/java are not being recognized #16

rimolive opened this issue Sep 15, 2016 · 5 comments

Comments

@rimolive
Copy link

My Maven project has some test classes and using this plugin it is showing a lot of errors. One of them is the below:

"The declared package br.nom.martinelli.ricardo.academix does not match the expected package src.text.java.br.nom.martinelli.ricardo.academix" (1,9)

Which IMO means that the plugin didn't recognize src/test/java as the test dir for my maven project.

@fbricon
Copy link
Collaborator

fbricon commented Sep 15, 2016

package says src.text.java. Is the project under the test or text folder?

any chance you could provide a sample project to reproduce the issue?

@rimolive
Copy link
Author

rimolive commented Sep 15, 2016

It's a typo, sorry about that. indeed it is about src.test, not src.text.

My repo is https://github.com/rimolive/academix, the test classes are under academix-model module.

@fbricon
Copy link
Collaborator

fbricon commented Sep 15, 2016

So I opened the root of the repo and everything worked the 1st time. The test classes were properly recognized, I had autocompletion.
On second try, nothing happened. So we definitely have something weird going on.

@fbricon
Copy link
Collaborator

fbricon commented Sep 16, 2016

Can you delete all your (.project|.classpath|.settings/) from your projects, then update to the latest vs code extension and try to reopen your repo?

@gorkem
Copy link
Contributor

gorkem commented May 1, 2018

Closing due to inactivity.

@gorkem gorkem closed this as completed May 1, 2018
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