How can I setup some initial environment for multiple tests in Rust project? For example I would like to read some configuration file and share the data between all my tests.
In my specific case I cannot start testing without getting a path to a shared library (which is not fixed and depends on installation directory and OS). So I would like to read some configuration file into an immutable struct and to share it between all my tests. Can I achieve that?
Aucun commentaire:
Enregistrer un commentaire