Skip to content

Commit 9d5bc6c

Browse files
authored
0.11.1: a command is held to what its case has left (#27)
* 0.11.1: a command is held to what its case has left time_left() states what the running case has left of its timeout and its scopes'; e2e::run holds a command to it, less a tenth (at most five seconds) the case keeps for its report, and says so (outcome::case_limit). * 0.11.1: the clamp leaves what ending a command takes; versions; format * 0.11.1: every program event states the version
1 parent ce124f0 commit 9d5bc6c

24 files changed

Lines changed: 98 additions & 22 deletions

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [0.11.1] - 2026-11-21
4+
5+
- **A command is held to what its case has left.** `time_left()` states what the running case has
6+
left of its `timeout`, the earliest end of its own and of each scope's around it, each counted
7+
from when it began; nothing when none states one. `e2e::run` holds a command to it, less what ending
8+
the command takes (its grace and drain) and a tenth (at most five seconds) the case keeps for its
9+
report: a command that would outlast its case ends
10+
while the case can still say so, with the outputs it wrote, and the outcome's `case_limit` and
11+
the failure's text (`the time its case had left`) say why. A command of a case that states no
12+
time keeps its own limit. Source-compatible with 0.11.0; the engine changes only the version
13+
it states, which the five packages share.
14+
315
## [0.11.0] - 2026-11-21
416

517
What a test system needs to see the cost of the tests it runs (SPEC-017 v2.5; mcpp's test and CI

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main() {
3838
3939
```toml
4040
[dev-dependencies]
41-
mcpplibs.mtest = "0.11.0"
41+
mcpplibs.mtest = "0.11.1"
4242
```
4343

4444
A failure names its place and both sides (`expected 2, actual 3`). Under a runner the same program

‎README.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main() {
3737
3838
```toml
3939
[dev-dependencies]
40-
mcpplibs.mtest = "0.11.0"
40+
mcpplibs.mtest = "0.11.1"
4141
```
4242

4343
失败时给出位置与两侧的值(`expected 2, actual 3`)。在运行器之下,同一程序按协议报告;单独运行时每个用例输出一行。

‎adapters/doctest/docs/writing-tests.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package `mcpplibs.mtest.doctest` supplies doctest's implementation and the progr
55

66
```toml
77
[dev-dependencies]
8-
mcpplibs.mtest.doctest = "0.11.0"
8+
mcpplibs.mtest.doctest = "0.11.1"
99
```
1010

1111
```cpp

‎adapters/doctest/mcpp.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# neither (no `DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN`):
66
#
77
# [dev-dependencies]
8-
# mcpplibs.mtest.doctest = "0.11.0"
8+
# mcpplibs.mtest.doctest = "0.11.1"
99
#
1010
# A case's identifier is `<suite>/<name>` (P3.2), or `<name>` outside a `TEST_SUITE`. doctest's
1111
# macros exist only in its header, so this package's one source includes it, and nlohmann/json's
1212
# beside it, as the GoogleTest adapter does.
1313
[package]
1414
namespace = "mcpplibs.mtest"
1515
name = "doctest"
16-
version = "0.11.0"
16+
version = "0.11.1"
1717
description = "doctest speaking the mtest protocol: doctest's implementation and a test main that lists, selects and reports its cases"
1818
license = "Apache-2.0"
1919

‎adapters/doctest/src/protocol.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ int mcpplibs_mtest_doctest_main(int argc, char** argv) {
162162
{"protocol", 1},
163163
{"level", 1},
164164
{"framework", "doctest"},
165-
{"version", "0.11.0"},
165+
{"version", "0.11.1"},
166166
{"isolation", {"process", "case"}},
167167
{"guide", "https://github.com/mcpp-community/mtest/blob/main/adapters/doctest/docs/"
168168
"writing-tests.md"}});

‎adapters/gtest/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[package]
1414
namespace = "mcpplibs.mtest"
1515
name = "gtest"
16-
version = "0.11.0"
16+
version = "0.11.1"
1717
description = "GoogleTest speaking the mtest protocol: a test main that lists, selects and reports GoogleTest's cases"
1818
license = "Apache-2.0"
1919

‎adapters/gtest/src/protocol.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int mcpplibs_mtest_gtest_main(int argc, char** argv) {
128128
{"protocol", 1},
129129
{"level", 1},
130130
{"framework", "googletest"},
131-
{"version", "0.11.0"},
131+
{"version", "0.11.1"},
132132
{"isolation", {"process", "case"}},
133133
{"guide", "https://github.com/mcpp-community/mtest/blob/main/adapters/gtest/docs/"
134134
"writing-tests.md"}});

‎capi/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
namespace = "mcpplibs.mtest"
66
name = "capi"
7-
version = "0.11.0"
7+
version = "0.11.1"
88
description = "mtest's C ABI: the protocol's events for any language with a C FFI"
99
license = "Apache-2.0"
1010

‎capi/src/mtest.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void mtest_init(const char* framework, int level) {
120120
{"protocol", 1},
121121
{"level", std::clamp(level, 1, 3)},
122122
{"framework", text(framework)},
123-
{"version", "0.11.0"},
123+
{"version", "0.11.1"},
124124
{"isolation", {"process", "case"}}});
125125
}
126126

0 commit comments

Comments
 (0)