protostar
protostar copied to clipboard
Add support for `setup`s
Moving it to protostar 1.0, it is not related to pure cairo1 runner
This should be considered when implementing https://github.com/software-mansion/protostar/issues/1322
Suggested syntax
#[setup]
fn some_func(){
}
We should use compilers config attributes feature for thath
Mabye it is alsow worth considering, rust setup
use std::sync::Once;
static INIT: Once = Once::new();
pub fn initialize() {
INIT.call_once(|| {
// initialization code here
});
}
I firmly believe this issue deserves a design doc before hand
Useful resource https://docs.swmansion.com/protostar/docs/legacy/testing#setup-hooks