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

generate-rtd: Tests fetched from different directories are put in the root assignment test directory, causing errors #86

Closed
slarse opened this issue Nov 8, 2020 · 1 comment · Fixed by #89
Labels
bug Something isn't working

Comments

@slarse
Copy link
Collaborator

slarse commented Nov 8, 2020

Currently, generate-rtd puts all tests in the root directory of the reference test. This is a problem, as for each test class, JUnit4 tries to compile the entire directory that the test class is located in, along with the entire directory that the production class is located in. This is problematic if two unrelated test classes are in the same directory, as the production dependency of the one will not be available when the other is compiled.

The easiest way to solve this is to simply mirror the original repo directory structure. Perhaps it would even be prudent to simply copy the entire template repo, it doesn't really matter if the solutions are also there.

@slarse slarse added the bug Something isn't working label Nov 8, 2020
@slarse slarse closed this as completed in fdf1be0 Nov 8, 2020
@slarse slarse reopened this Nov 9, 2020
@slarse
Copy link
Collaborator Author

slarse commented Nov 9, 2020

incorrectly closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant