@@ -401,8 +401,7 @@ The structure of this document is as follows:
401
401
test
402
402
~~~~
403
403
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.
406
405
407
406
The structure of each document is as follows:
408
407
@@ -1323,8 +1322,8 @@ Syntax::
1323
1322
1324
1323
This operator can be used anywhere a matched value is expected (including an
1325
1324
`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
1328
1327
means that it may contain special operators.
1329
1328
1330
1329
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
1377
1376
subsequent test files, and likewise for tests within a test file.
1378
1377
1379
1378
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
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1384
1381
1385
1382
The test runner MUST be configurable with a connection string (or equivalent
1386
1383
configuration), which will be used to initialize the internal MongoClient and
@@ -1446,7 +1443,7 @@ Executing a Test
1446
1443
1447
1444
The instructions in this section apply for each `test `_ occuring in a test file
1448
1445
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 `_
1450
1447
created for one test SHOULD NOT be shared with another.
1451
1448
1452
1449
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
1569
1566
to a session entity and MUST raise an error if the name is undefined or maps to
1570
1567
an unexpected type.
1571
1568
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
-
1575
1569
Before executing the operation, the test runner MUST be prepared to catch a
1576
1570
potential error from the operation (e.g. enter a ``try `` block). Proceed with
1577
1571
executing the operation and capture its result or error.
0 commit comments