-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus should be able to run tests in different folders than the "preset" ones #8950
Comments
I was thinking about replacing the logic in |
Looks like this is a duplicate of #8737 |
I get the same error and I'm not using IntelliJ, so it looks like the same problem. |
This line explicitly fails if the class is not in the hardcoded folders. |
Should be fixed with #10459 |
I don't think it's fixed, the code is still checking for the "correct" directory, why I can't put my tests in a arbitrary dir is beyond me The check at quarkus/test-framework/common/src/main/java/io/quarkus/test/common/PathTestHelper.java Line 77 in c5da033
I want to be able to just put my tests in any directory that I want, be it |
This is closed, but there is still no solution to that right? I know there is the Also pinging @augustobmoura , maybe you have a custom solution to this by now? |
@Alexander-Krause-Glau could you describe your issue in more detail? Is it a Gradle project? Do you have a little reproducer or instructions to create one? Thanks. |
Thanks for the reply. I think we are talking about narrow integration tests. Have a look at https://github.com/ExplorViz/landscape-service/blob/master/src/integrationTest/java/net/explorviz/landscape/peristence/cassandra/ReactiveSpanStructureRepositoryTest.java This is a Gradle Project and in Eclipse when I run this test as JUnit test I get
Depite currently failing tests, you can still use the custom Gradle Task |
@Alexander-Krause-Glau could you enable debug and see if you get a line starting with |
Here is the output from the Gradle Task. The
Btw. I get the same log output if I use |
Thanks. Yes, I see it changed to debug only in 2.15.0.CR1. |
@glefloch could you please check @Alexander-Krause-Glau's project? I can't seem to get Eclipse to properly import it. |
@aloubyansky Import as Gradle Project in Eclipse, not as Eclipse Project. Dunno if you already did. |
Yes, that's what I did. Are you on zulip @Alexander-Krause-Glau? |
@Alexander-Krause-Glau #29808 should fix it for you. |
Description
This issue comes from: here
I want to separate my unit tests from my integration tests for multiple reasons. To do that, I can add a set sourceSet (in gradle) or similar in maven, but when running the tests, I get this message:
It should be possible to run tests outside these folder.
Implementation ideas
I don't have any. But if you provide me some guidance, I would love to create the PR for that.
The text was updated successfully, but these errors were encountered: