36 lines
691 B
Plaintext
36 lines
691 B
Plaintext
use std/testing *
|
|
use std/log
|
|
use std/assert
|
|
|
|
@before-each
|
|
def before-each [] {
|
|
log debug "Setup is running"
|
|
{msg: "This is the context"}
|
|
}
|
|
|
|
@after-each
|
|
def after-each [] {
|
|
log debug $"Teardown is running. Context: ($in)"
|
|
}
|
|
|
|
@test
|
|
def assert_pass [] {
|
|
log debug $"Assert is running. Context: ($in)"
|
|
}
|
|
|
|
@ignore
|
|
def assert_skip [] {
|
|
log debug $"Assert is running. Context: ($in)"
|
|
}
|
|
|
|
@ignore
|
|
def assert_fail_skipped_by_default [] {
|
|
# Change test-skip to test if you want to see what happens if a test fails
|
|
log debug $"Assert is running. Context: ($in)"
|
|
assert false
|
|
}
|
|
|
|
def unrelated [] {
|
|
log error "This should not run"
|
|
}
|