Skip to content

Commit e6cb23e

Browse files
committed
Language edits from PR feedback
1 parent cf3193c commit e6cb23e

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

source/unified-test-format/unified-test-format.rst

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,7 @@ The structure of this document is as follows:
401401
test
402402
~~~~
403403

404-
Test case consisting of a sequence of operations to be executed. The test may
405-
optionally include configuration directives and event/outcome assertions.
404+
Test case consisting of a sequence of operations to be executed.
406405

407406
The structure of each document is as follows:
408407

@@ -1323,8 +1322,8 @@ Syntax::
13231322

13241323
This operator can be used anywhere a matched value is expected (including an
13251324
`expectedResult <operation_expectedResult_>`_). The test runner MUST assert that
1326-
actual value either does not exist or and matches the expected value. Matching
1327-
the expected value should use the standard rules in `Evaluating Matches`_, which
1325+
actual value either does not exist or matches the expected value. Matching the
1326+
expected value should use the standard rules in `Evaluating Matches`_, which
13281327
means that it may contain special operators.
13291328

13301329
This operator is primarily used to assert driver-optional fields from the CRUD
@@ -1377,10 +1376,8 @@ SHOULD NOT share state created by processing a test file with the processing of
13771376
subsequent test files, and likewise for tests within a test file.
13781377

13791378

1380-
Configuring the Test Runner
1381-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
1382-
1383-
The instructions in this section apply once for the test runner.
1379+
Initializing the Test Runner
1380+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13841381

13851382
The test runner MUST be configurable with a connection string (or equivalent
13861383
configuration), which will be used to initialize the internal MongoClient and
@@ -1446,7 +1443,7 @@ Executing a Test
14461443

14471444
The instructions in this section apply for each `test`_ occuring in a test file
14481445
loaded by the test runner. After processing a test, test runners SHOULD reset
1449-
any internal state that resulted from doing so. For example, the entity map
1446+
any internal state that resulted from doing so. For example, the `Entity Map`_
14501447
created for one test SHOULD NOT be shared with another.
14511448

14521449
If at any point while executing this test an unexpected error is encountered or
@@ -1569,9 +1566,6 @@ Proceed with preparing the operation's arguments. If ``session`` is specified in
15691566
to a session entity and MUST raise an error if the name is undefined or maps to
15701567
an unexpected type.
15711568

1572-
Proceed with executing the operation such that its return value (if any) potential error can be caught
1573-
(e.g. using a ``try`` block).
1574-
15751569
Before executing the operation, the test runner MUST be prepared to catch a
15761570
potential error from the operation (e.g. enter a ``try`` block). Proceed with
15771571
executing the operation and capture its result or error.

0 commit comments

Comments
 (0)