aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/rust-dynamic-std.md
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2024-07-13 13:25:02 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-07-22 09:05:34 -0700
commit3114bc65885a7499f5a255e76875fa88010e8589 (patch)
tree67bb5cf001cf9ab9b35b58abf419dfa8d8084dfa /docs/markdown/snippets/rust-dynamic-std.md
parent092ab8c9e117cc00aa699c8d513572f95009cae8 (diff)
downloadmeson-3114bc65885a7499f5a255e76875fa88010e8589.zip
meson-3114bc65885a7499f5a255e76875fa88010e8589.tar.gz
meson-3114bc65885a7499f5a255e76875fa88010e8589.tar.bz2
unittests: allow running with pytest/unittest directly
Currently the unittests are not runnable with pytest or unittest without going through the run_unittests.py wrapper, or setting certain env vars like MESON_UNIT_TEST_BACKEND. This has that downside that the common "pytest ..." fails and integration with things like VSCode fails too. To work around that we set everything that is needed to run the tests in __init__.py and run_unittests is only one more variant to invoke them by providing different defaults and settings. To make sure that pytest/unittest discover and run_unittests don't diverge implement an automatic test discovery in run_unittests to avoid hardcoding the tests to run there. There shouldn't be any functional changes.
Diffstat (limited to 'docs/markdown/snippets/rust-dynamic-std.md')
0 files changed, 0 insertions, 0 deletions