You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a mill build with a few modules, each of them with a nested test module. I have generated and opened an Intellij IDEA project with mill.scalalib.GenIdea/idea. If I try to run anything from within IDEA (rather than from mill), I get the following error for each test module :
This is apparently because the test modules have an output path, but don't have a test output path. Since mill test modules only contain test code, I solved this by removing the regular output path, and using the same path for the test output path instead (basically, replace <output> with <output-test>). It seems to work for me.
I'll make a PR for this (it seems like it would be a trivial change in GenIdeaImpl), hopefully I'm not missing something obvious here.
The text was updated successfully, but these errors were encountered:
I did some more tests; I also think that the resources folder in a test module should be declared as: <sourceFolder url="file://$MODULE_DIR$/../myModule/test/resources" type="java-test-resource" />
And not: <sourceFolder url="file://$MODULE_DIR$/../myModule/test/resources" isTestSource="true" type="java-resource"/>
The first one is what I get if I manually set the path for "test resources" in IDEA; the latter is just seen as "resources" after opening in IDEA.
I have created a mill build with a few modules, each of them with a nested test module. I have generated and opened an Intellij IDEA project with
mill.scalalib.GenIdea/idea
. If I try to run anything from within IDEA (rather than from mill), I get the following error for each test module :This is apparently because the test modules have an output path, but don't have a test output path. Since mill test modules only contain test code, I solved this by removing the regular output path, and using the same path for the test output path instead (basically, replace
<output>
with<output-test>
). It seems to work for me.I'll make a PR for this (it seems like it would be a trivial change in
GenIdeaImpl
), hopefully I'm not missing something obvious here.The text was updated successfully, but these errors were encountered: