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

How to ignore the test class? #144

Open
spartanhooah opened this issue Apr 8, 2022 · 1 comment
Open

How to ignore the test class? #144

spartanhooah opened this issue Apr 8, 2022 · 1 comment

Comments

@spartanhooah
Copy link

I'm converting unit tests from JUnit to Spock in a project that uses OpenPojo. The POJO validation test is currently in the same package as the POJOs it's testing, and it works fine in JUnit. However, with Spock, PojoClassFactory::getPojoClassesRecursively picks up the test class itself, and thus the test fails. I can move it to a different package and it passes, but that doesn't feel right. Is there some way to have that method ignore the test class?

@WatameBytes
Copy link

If you name all your test files with "Test" at the end, you can easily filter it.

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