From aa5242ad9052789cc6a7129d7e67d855e21935e3 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 15 Sep 2023 13:32:37 +0800 Subject: [PATCH] add changelog Signed-off-by: Bugen Zhao --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1651c17..e615195 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [0.16.0] - 2023-09-15 + +* Support running external system commands with the syntax below. This is useful for manipulating some external resources during the test. + ``` + system ok + echo "Hello, world!" + ``` + The runner will check the exit code of the command, and the output will be ignored. Currently, only `ok` is supported. + + Changes: + - (parser) **Breaking change**: Add `Record::System`, and corresponding `TestErrorKind` and `RecordOutput`. Mark `TestErrorKind` and `RecordOutput` as `#[non_exhaustive]`. + - (runner) Add `run_command` to `AsyncDB` trait. The default implementation will run the command with `std::process::Command::status`. Implementors can override this method to utilize an asynchronous runtime such as `tokio`. + +* fix(runner): fix database name duplication for parallel tests by using the **full path** of the test file (instead of the file name) as the database name. + ## [0.15.3] - 2023-08-02 * fix(bin): fix error context display. To avoid stack backtrace being printed, unset `RUST_BACKTRACE` environment variable, or use pre-built binaries built with stable toolchain instead.