-
Notifications
You must be signed in to change notification settings - Fork 147
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
Make all Java classes in src/test/resources folder compilable by java compiler #195
Comments
We should definitely ensure that src/test/resources are compilable, but we should not ship them. So we cannot merely add them as source-folder. Maybe we can do this for some profile that is not activated during release build? |
I believe we could just skip packing these folder content into the jar in pom.xml: http://stackoverflow.com/questions/21475859/in-maven-add-a-folder-as-a-source-folder-but-dont-include-it-in-source-jar |
All the files are now compilable and excluded from .jar |
Very strange change. What is the mechanics? |
Also there are numerous test deletions - are all them valid? |
Several files weren't used in UT at all and some tests were checking uncompilable cases, they were deleted. |
Not all deleted code was expected to be deleted, see comments at google groups for more details. Also, that change breaks code formatting, which wasn't expected, too. We cannot allow so huge and strange update to be merged into main repo. So, @alexkravin, please separate your update have to several pull requests - one PR per fixes for a single check. Every PR should contain update to pom.xml which forces fixed / checked testinputs to be compiled automatically by 'mvn compile' goal. This will allow code review and code fixes flexibilty. |
Additional request: we need to resolve all Eclipse warnings in testinputs code or (which is better) - find the way to ignore them in Eclipse properties. |
There's an option in Java Build Path which switches on ignoring all the compiler warnings on current folder except for warnings set in Windows-Preferences-Compiler-Errors/Warnings, I suggest this way of solving, there would be few of fixes and UT and it's inputs wouldn't be changed a lot |
We have to make testinputs (src/test/resources folder) compilable to ensure that we are testing our checks only on valid Java code. So, please:
The text was updated successfully, but these errors were encountered: