New Issue: [Feature Request]: 'mason test' to skip compiling some files

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 test for .chpl files that do not contain unit tests. Like test/support
  • Something in Mason.toml file to skip some files in the test directory.
  • A new file like test/MasonTest.toml specifically 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.toml that can describe how/whether test/Foo.chpl should be tested. The lack of that file implies the current default behavior.