You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like rustest, we offer a teardown attribute. Should probably be named drop
Once we have generators in Rust, we could consider using those for setup/teardown phases
Fixtures can be scoped to the parameter, test, or global
Differences from Pytest
Like rustest, fixtures should be found by their type through the type system, rather than behind the scenes machinery like pytest.
While fixtures can be parameterized (Parametrized tests support #19), fixtures can't enumerate parameters. Pytest allows parameterization through both markers and fixtures while we'll keep these separate. If nothing else, this will give a clear demarcation point for what runs during Discovery Phase (parameter discovery) vs Run Phase (fixtures)
The idea is to print pytest-like fixtures to Rust, like test-r and rustest do.
Fixtures should allow composable test setup and tear down
#[ignore]macro support #16)#[should_panic]macro support #15)rustest, we offer a teardown attribute. Should probably be nameddropDifferences from Pytest