mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Add script to benchmark the tests
This commit is contained in:
@@ -6,10 +6,18 @@ and an own build machine.
|
||||
|
||||
## Description of scripts
|
||||
|
||||
Scripts should be ran from the root of the repository,
|
||||
for example:
|
||||
```
|
||||
$ scripts/clippy.sh
|
||||
```
|
||||
|
||||
- `clippy.sh` runs `cargo clippy` for all Rust code in the project.
|
||||
|
||||
- `deny.sh` runs `cargo deny` for all Rust code in the project.
|
||||
|
||||
- `benchmark-tests.sh`
|
||||
|
||||
- `../.github/workflows` contains jobs run by GitHub Actions.
|
||||
|
||||
- `remote_tests_python.sh` rsyncs to a build machine and runs
|
||||
|
||||
8
scripts/benchmark-tests.sh
Executable file
8
scripts/benchmark-tests.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Benchmark the tests with `hyperfine`.
|
||||
|
||||
set -e
|
||||
|
||||
# `--tests` selects unit tests but not the documentation tests.
|
||||
# `--skip` arguments skip online tests.
|
||||
hyperfine --warmup 1 --min-runs 20 "cargo test --tests --release -- --skip imex::transfer::tests::test_drop_provider --skip imex::transfer::tests::test_send_receive --skip oauth2::tests::test_oauth_from_mx --skip oauth2::tests::test_get_oauth2_token --skip oauth2::tests::test_get_oauth2_addr --skip configure::tests::test_no_panic_on_bad_credentials --skip qr_code_generator::tests::test_generate_backup_qr"
|
||||
Reference in New Issue
Block a user