Nextest supports test groups to specify concurrency and the number of threads to target test groups, basically mimicking serial execution of certain groups of tests. This is exactly what we need as Postgres Rust E2E tests are using shared resource and state with parallel tests execution might be different from what we expect
created new file .config/nextest.toml in nautilus_core to add serial-tests test group
removed serial_test crate and corresponding attribute in test_cache_database_postgres
rename tests to serial_tests
Running cargo nextest show-config test-groups now shows
Pull Request
Nextest supports test groups to specify concurrency and the number of threads to target test groups, basically mimicking serial execution of certain groups of tests. This is exactly what we need as Postgres Rust E2E tests are using shared resource and state with parallel tests execution might be different from what we expect
.config/nextest.toml
innautilus_core
to addserial-tests
test groupserial_test
crate and corresponding attribute intest_cache_database_postgres
serial_tests
Running
cargo nextest show-config test-groups
now shows