Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion adapters/gtest/docs/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ TEST(Parsing, Fields) {
```

- The manifest: `[dev-dependencies] mcpplibs.mtest.gtest = "0.1.0"`. A file defines no `main` (mcpp
2026.11.8.1 or later; an earlier mcpp needs `[test] main = { from = "gtest/main" }`).
2026.11.8.1 or later). An earlier mcpp needs `[test] main = { from = "mcpplibs.mtest.gtest/main" }`
and `compat.gtest = "1.18.0"` beside it, so that GoogleTest's own `gtest_main.cc` stays out of the
program.
- A case's identifier is `<suite>/<name>`: `Parsing/EmptyLine`.
- `mcpp test --case 'Parsing/*'` runs those cases; `mcpp test --cases` lists them; a failure is named
with its place.
Expand Down
2 changes: 1 addition & 1 deletion docs/adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ conformance suite (`MTEST_CTS_PROGRAM`, a command: a program and its arguments,
| Adapter | Level | Use |
|---|---|---|
| `mcpplibs.mtest` (C++) | 3 | `import mcpplibs.mtest;` — the library itself |
| GoogleTest | 1 | `mcpplibs.mtest.gtest` as a dev-dependency, whose entry begins a test file (mcpp 2026.11.8.1+; earlier: `[test] main = { from = "gtest/main" }`); identifiers are `<suite>/<name>` |
| GoogleTest | 1 | `mcpplibs.mtest.gtest` as a dev-dependency, whose entry begins a test file (mcpp 2026.11.8.1+; earlier: `[test] main = { from = "mcpplibs.mtest.gtest/main" }` and `compat.gtest` as a dev-dependency too); identifiers are `<suite>/<name>` |
| Bash | 3 | `. mtest.sh`, then `mtest_case ID FUNCTION [--tag T ...]` and `mtest_report` |
| Python | 3 | `import mtest_report as mt`, `@mt.case("id")`, `mt.report()` |
| C ABI | 3 | `include/mtest.h` and `libmtest`, for any language with a C FFI |
Expand Down
Loading