nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
1.7k stars 398 forks source link

Add serial test group to Rust nextest runner for Postgres E2E tests #1753

Closed filipmacek closed 2 days ago

filipmacek commented 2 days ago

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

Running cargo nextest show-config test-groups now shows

Screenshot 2024-06-29 at 11 35 22