aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-10-16 12:37:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-01-05 10:23:41 -0800
commitd89ec98b4763cda13da0ae22515c27f4dfe5c1b9 (patch)
tree77c7d63e029c3e3a0cb369124a257a6f21ba763c /docs/markdown
parent07ff9c61fed420af33f9d1a561512ff2c6cd21d2 (diff)
downloadmeson-d89ec98b4763cda13da0ae22515c27f4dfe5c1b9.zip
meson-d89ec98b4763cda13da0ae22515c27f4dfe5c1b9.tar.gz
meson-d89ec98b4763cda13da0ae22515c27f4dfe5c1b9.tar.bz2
mtest: Add support for rust unit tests
Rust has it's own built in unit test format, which is invoked by compiling a rust executable with the `--test` flag to rustc. The tests are then run by simply invoking that binary. They output a custom test format, which this patch adds parsing support for. This means that we can report each subtest in the junit we generate correctly, which should be helpful for orchestration systems like gitlab and jenkins which can parse junit XML.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md1
-rw-r--r--docs/markdown/snippets/rust_test_format_support.md4
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 924047c..525c3da 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1745,6 +1745,7 @@ test(..., env: nomalloc, ...)
to record the outcome of the test).
- `tap`: [Test Anything Protocol](https://www.testanything.org/).
- `gtest` *(since 0.55.0)*: for Google Tests.
+ - `rust` *(since 0.56.0)*: for native rust tests
- `priority` *(since 0.52.0)*:specifies the priority of a test. Tests with a
higher priority are *started* before tests with a lower priority.
diff --git a/docs/markdown/snippets/rust_test_format_support.md b/docs/markdown/snippets/rust_test_format_support.md
new file mode 100644
index 0000000..69e9aa1
--- /dev/null
+++ b/docs/markdown/snippets/rust_test_format_support.md
@@ -0,0 +1,4 @@
+## Meson test() now accepts `protocol : 'rust'`
+
+This allows native rust tests to be run and parsed by meson, simply set the
+protocol to `rust` and meson takes care of the rest.