2023-05-25 19:43:07 +00:00
|
|
|
use std log
|
2023-05-27 12:45:04 +00:00
|
|
|
use std assert
|
2023-04-10 20:42:11 +00:00
|
|
|
|
2023-07-02 08:41:33 +00:00
|
|
|
#[before-each]
|
2023-06-10 18:16:17 +00:00
|
|
|
def before-each [] {
|
2023-04-10 20:42:11 +00:00
|
|
|
log debug "Setup is running"
|
|
|
|
{msg: "This is the context"}
|
|
|
|
}
|
|
|
|
|
2023-07-02 08:41:33 +00:00
|
|
|
#[after-each]
|
2023-06-10 18:16:17 +00:00
|
|
|
def after-each [] {
|
2023-04-10 20:42:11 +00:00
|
|
|
log debug $"Teardown is running. Context: ($in)"
|
|
|
|
}
|
|
|
|
|
2023-07-02 08:41:33 +00:00
|
|
|
#[test]
|
|
|
|
def assert_pass [] {
|
2023-04-10 20:42:11 +00:00
|
|
|
log debug $"Assert is running. Context: ($in)"
|
|
|
|
}
|
|
|
|
|
2023-07-02 08:41:33 +00:00
|
|
|
#[ignore]
|
|
|
|
def assert_skip [] {
|
2023-04-10 20:42:11 +00:00
|
|
|
log debug $"Assert is running. Context: ($in)"
|
|
|
|
}
|
|
|
|
|
2023-07-02 08:41:33 +00:00
|
|
|
#[ignore]
|
|
|
|
def assert_fail_skipped_by_default [] {
|
|
|
|
# Change test-skip to test if you want to see what happens if a test fails
|
2023-04-10 20:42:11 +00:00
|
|
|
log debug $"Assert is running. Context: ($in)"
|
|
|
|
assert false
|
|
|
|
}
|
|
|
|
|
2023-06-10 18:16:17 +00:00
|
|
|
def unrelated [] {
|
2023-04-10 20:42:11 +00:00
|
|
|
log error "This should not run"
|
|
|
|
}
|