Problem
While running a Java project with a Bazel build system, at some point a test source root directory (`/src/test/java/`) is being re-assigned as a source root directory instead
Actual result
Expected result
Solution
When a build system like Bazel is used in a project, all the Content Root configuration is delegated to a build system, and all the manual changes will be deleted on the next build system sync
In the .bazelproject file, locate or add the test_sources section. This is where you define the directories containing your test sources. It typically looks something like this:
directories:
path/to/your/source/directory
test_sources:
path/to/your/test/directory
Comments
0 comments
Please sign in to leave a comment.