Comma 2020.07 (community edition) has changed the test configuration, and now you can test different things: module, project and so on. However, I can't simply get it to run the usual tests. When I use "All in project" testing, I get this error:
No test source roots in the project: is it properly configured?
I have no idea where to set the source roots, or how to configure it properly. Tests are in the usual place, t/.
When a new project is created or imported, the
libdirectory should get marked as a source root (where modules live) and thetdirectory as a test root (where the tests live). Previously, Comma paid no attention to these markings and just hard-coded looking in thetdirectory 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
tfolder 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
.imlfile in the root directory of the project. In a correctly configured project there will be an entry like this:Yours is probably missing the entry for the
tdirectory withisTestSourceset totrue.Future Comma versions will provide a way on the UI to do this, so that one can set up multiple test roots if needed (
tandxtfor example).