Skip to content

v0.16.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Sep 06:16
d554415

[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.