-
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
Qute fails to detect src/main/resources templates when running maven test #17271
Comments
/cc @mkouba, @quarkusio/devtools |
Hello @mjgkaastrupandersen, a minimal reproducer and some information about your environment (e.g. Quarkus version) would be really helpful. |
@mkouba off course. My bad.
Build system is running on Ubuntu in WSL2 I'll see if I can find the time to create a minimal reproducer. |
I was just having the same problem, mainly while working in Eclipse. I started with a test with a template in Then I ran PS: Quarkus 2.4.1.Final |
Yes, that would be my guess as well. I always do |
Closing as we never got a reproducer |
I have tried implementing my Qute templates using
@ResourcePath
annotation but I am switching to the Type-safe templates strategy to have compile checking (which works great btw).Maven compile reports build success but when running a maven test, my tests fail, as my template-using classes no longer is able to find the templates:
I assume that this is because, in test, Qute is looking for the template in the src/test/resources/templates/ClassName/templateName and no longer src/main/resources/templates/ClassName/templateName as it did on compile-time.
Copying my templates to src/test/resources/templates, the issue no longer exists but this is not very desirable, as my tests no longer would test production templates.
This is not expected behaviour in my opinion.
Also, I would like to use test-specific templates declared only in my test classes, which should probably be taken into consideration, if this issue results in a fix.
The text was updated successfully, but these errors were encountered: