From 1b0aca0054cbc9ed346c289be40f29033b05c8a4 Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Fri, 8 Nov 2024 19:02:34 -0500 Subject: [PATCH 1/2] Simplify the explanation of a basic test case Simplifies the language used to describe a "basic setup for ExUnit" In particular, I removed the term "test case" which was an alias for a "test module". "test case" can easily be confused with a `test` block, so the explanation is something difficult to understand --- lib/ex_unit/lib/ex_unit.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ex_unit/lib/ex_unit.ex b/lib/ex_unit/lib/ex_unit.ex index fd90f6d95f8..c2ad5feb155 100644 --- a/lib/ex_unit/lib/ex_unit.ex +++ b/lib/ex_unit/lib/ex_unit.ex @@ -11,11 +11,11 @@ defmodule ExUnit do # 1) Start ExUnit. ExUnit.start() - # 2) Create a new test module (test case) and use "ExUnit.Case". + # 2) Create a new test module and use "ExUnit.Case". defmodule AssertionTest do - # 3) Note that we pass "async: true", this runs the test case - # concurrently with other test cases. The individual tests - # within each test case are still run serially. + # 3) Note that we pass "async: true", this runs tests in the + # test module concurrently with other test modules. The + # individual tests within each test module are still run serially. use ExUnit.Case, async: true # 4) Use the "test" macro instead of "def" for clarity. From e324a115a3a91e09dcfefe778a25b750540cffc6 Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Fri, 8 Nov 2024 19:04:01 -0500 Subject: [PATCH 2/2] Update lib/ex_unit/lib/ex_unit.ex --- lib/ex_unit/lib/ex_unit.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_unit/lib/ex_unit.ex b/lib/ex_unit/lib/ex_unit.ex index c2ad5feb155..a4504d1e4b6 100644 --- a/lib/ex_unit/lib/ex_unit.ex +++ b/lib/ex_unit/lib/ex_unit.ex @@ -13,7 +13,7 @@ defmodule ExUnit do # 2) Create a new test module and use "ExUnit.Case". defmodule AssertionTest do - # 3) Note that we pass "async: true", this runs tests in the + # 3) Note that we pass "async: true", this runs the tests in the # test module concurrently with other test modules. The # individual tests within each test module are still run serially. use ExUnit.Case, async: true