28458, "e-kayrakli", "[Feature Request]: 'mason test' to skip compiling some files", "2026-02-25T21:11:55Z"
Right now, when you run mason test, it compiles and runs every .chpl file in the test directory. In my project, I have .chplfile that is only there to have some support for unit tests and doesn't contain any test itself. Yet,mason testcompiles that file, too. While that's not a big deal, it still adds to themason test` time and it would be nice if there is a way to avoid that.
Ideas I can think of rather quickly:
- A special subdir in
testfor.chplfiles that do not contain unit tests. Liketest/support - Something in
Mason.tomlfile to skip some files in the test directory. - A new file like
test/MasonTest.tomlspecifically for testing configuration which may have more knobs down the road. - Somewhat similar to what we sometimes discuss about "what if we rewrote the test infra", we can consider supporting a
test/Foo.tomlthat can describe how/whethertest/Foo.chplshould be tested. The lack of that file implies the current default behavior.