-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration Test #144
base: main
Are you sure you want to change the base?
Integration Test #144
Conversation
love it! would be great to disable logging when testing as that's unlikely to ever be useful test output |
Would you disable all logging? I thought warnings may be useful to test. For example, when a |
good call. limiting to warning and up by default at least would be best; also would be nice to find a way to kill colour usage for tests so it doesn't have all the [33m etc escapes |
381ecc0
to
d4b4a21
Compare
It only tests --dry-run.
It also responds to env var BESTOOL_TIMELESS for removing timestamps. This makes it easier to configure multiple tests via env vars.
Also delete logic to remove time from logs as it's not longer needed. Leave the logic to print logs to stderr with RUST_LOG mode intact.
Add time to the template to test mocked time
… deleted before bash runs
cd009b2
to
3151539
Compare
|
||
let handle_res = init_db().and_then(run_db); | ||
|
||
if matches!(handle_res, Err(_)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if matches!(handle_res, Err(_)) { | |
if handle_res.is_err() { |
@@ -110,3 +117,73 @@ fn stop_db(temp_dir: TempDir) -> Result<()> { | |||
|
|||
Ok(()) | |||
} | |||
|
|||
pub fn find_postgres_bin(name: &str) -> Result<OsString> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this copied from the lib? can we expose that and re-use instead?
Right now, it's just a rough demo of
trycmd
with one test case for Tamanu Alerts.