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

Test don't work #4

Closed
gtohagan opened this issue Feb 14, 2022 · 1 comment
Closed

Test don't work #4

gtohagan opened this issue Feb 14, 2022 · 1 comment

Comments

@gtohagan
Copy link

Hi
the tests on the Service layer don't appear to work.

If I run: mvn '-Dtest=se.callista.blog.tenant_management.service.*.Test' test
it produces an error relating to no tests found...

@beskow
Copy link

beskow commented Nov 16, 2022

The tests in the service layer are integration tests, and hence are not executed during the 'test' lifecycle, but in the 'integration-test' lifecycle. Besides that, you have a syntax error in your '-Dtest=' class pattern. It is a class-matching pattern, not a regular expression. Hence the last part should be '.*Test' (remove the dot between the asterisk and Test).

If you run mvn '-Dtest=se.callista.blog.tenant_management.service.*Test' integration-test it should work as expected.

@beskow beskow closed this as completed Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants