oh-my-fish/plugins/fish-spec/run_specs.fish

18 lines
342 B
Fish
Raw Normal View History

2015-01-10 12:14:02 +08:00
function run_specs
# Run each describe function
for describe in (functions -n | grep describe_)
eval $describe
end
# Run before all block
2015-01-11 01:09:09 +08:00
functions -q before_all; and before_all
2015-01-10 12:14:02 +08:00
# Run tests
for test in (functions -n | grep it_)
run_spec $test
end
# Run after all block
2015-01-11 01:09:09 +08:00
functions -q after_all; and after_all
2015-01-10 12:14:02 +08:00
end