Does anyone know a good test helpers library, with stuff like an xfail marker?
what's an xfail marker?
Some thing that you put on a test to say "I know this fails, but I won't fix it now". https://docs.pytest.org/en/6.2.x/skipping.html
For namespaces I ignore them with my kaocha cmd line
in #C07NJRDQWDS, you can use :skip metadata on a suite or test case to skip it and all children
With kaocha you can use profiles in tests and then skip tests by namespace etc
kaocha --profile working --skip your.namesapce.important.testThen you've also got --skip-meta (in Kaocha): https://github.com/lambdaisland/kaocha/blob/main/doc/filtering/skip_meta.md
I would use test selector meta data, e.g ^:failing-test on test functions. All test runners can be called to skip one or more test selectors. or run one specific selector.
I mostly use this approach for integration testing.
https://practical.li/clojure/testing/unit-testing/test-selectors/