When a new project is created or imported, the lib
directory should get marked as a source root (where modules live) and the t
directory as a test root (where the tests live). Previously, Comma paid no attention to these markings and just hard-coded looking in the t
directory for tests, but ongoing work is aiming to support a wider range of project structures, and thus as of a recent release the concept of test root started to matter.
Somehow, you've ended up with a project where the t
folder is not marked as a test root. I'm not sure how that happened, but there are ways to try to fix this situation.
One is to re-import the project from source, which should set it up correctly, but will lose run configurations.
An alternative is to open the .iml
file in the root directory of the project. In a correctly configured project there will be an entry like this:
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/t" isTestSource="true" />
</content>
Yours is probably missing the entry for the t
directory with isTestSource
set to true
.
Future Comma versions will provide a way on the UI to do this, so that one can set up multiple test roots if needed (t
and xt
for example).