Open andreievg opened 2 years ago
https://github.com/msupply-foundation/open-msupply/pull/248#discussion_r919597479
I wonder if using env would work in tests?
I've been commenting out these lines: https://github.com/msupply-foundation/open-msupply/blob/0a47d5388a5c45cb7029d070d57cfaf598022b81/server/service/src/sync/test/integration/central/mod.rs#L25
But should check if we can just set this in vs code rust analyser, similar to the integration test env vars: https://github.com/msupply-foundation/open-msupply/blob/0a47d5388a5c45cb7029d070d57cfaf598022b81/server/service/src/sync/test/integration/README.md#L26
Quite often when tests fail I've used:
And just comment it out when needed, it would be nice to have something more generic like what's been suggested by @mark-prins here: https://github.com/openmsupply/open-msupply/pull/248#discussion_r919597479
But tests don't often initialise logger, and having this behind feature would mean rust analyzer would need to be restarted.. Not sure how to best deal with it, maybe as mark suggested but do println (and set env variable for logger level ?)
related: https://github.com/openmsupply/open-msupply/issues/344