From 24847a0f8b7d8e361d7b226b76bbbd780765a6bc Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Thu, 24 Oct 2013 16:04:04 -0700 Subject: [PATCH] Add setup and teardown to the top. --- Bats-Evaluation-Process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bats-Evaluation-Process.md b/Bats-Evaluation-Process.md index 6ccb909..f30b0f4 100644 --- a/Bats-Evaluation-Process.md +++ b/Bats-Evaluation-Process.md @@ -1,4 +1,4 @@ -In order to better understand what you can and can't do outside of `test` blocks, it's important to know how Bats processes test files. Below is a walkthrough by Sam: +In order to better understand what you can and can't do outside of `@test` blocks and `setup` or `teardown` functions, it's important to know how Bats processes test files. Below is a walkthrough by Sam: 1. First, each test file is preprocessed. This essentially amounts to replacing lines like `@test "first test" {` with `test_first_test() { bats_begin_test "first test";`, i.e. turning each `@test` block into a test function.