Make sure that all directories that are in sfdx-project.json are also under configured source roots in the IDE. IC adds the configured source roots as the path arguments when it builds the aer command-line, so it sounds like at least one is not configured for the IDE. Let me know if you’re not sure how to check/configure the source roots.
Regards,
Scott Wells
It should work fine with All Tests. IC will scan the source roots for all test classes and add them explicitly to the command-line via -f arguments.
Are you still getting “Failed to determine modules for test declarations”? If so, that means there’s still some kind of configuration issue. Can you share your entire .iml file so I can see if it’s in there?
Regards,
Scott Wells
I think this may be the issue:
Notice that those are marked as test source roots. Can you try changing them to be standard source roots instead? That may not help, but let’s see. If it doesn’t, I may need to instrument this a bit with debug logging — which will help me troubleshoot stuff in this area better anyway — and give you a pre-release build that with that enabled so I can see better what’s going on as it’s translating the unit test run config into the actual tests to be executed.
Regards,
Scott Wells