mirror of
https://github.com/nushell/nushell.git
synced 2025-06-01 07:35:49 +02:00
35 lines
682 B
Plaintext
35 lines
682 B
Plaintext
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"
|
|
}
|