|
@@ -403,7 +403,7 @@ Below is an example test. Note that it runs the importer, then uses the values
|
|
|
|
|
|
Note that the test name begins with ``test_``. This tells Tripal Test Suite that this function is a test and should be run as such. The test itself runs the loader, then queries the db to retrieve the ``featureprop`` record that should have been created in the first line of the example file. It then uses an **assertion** to check that the value retrieved is, in fact, the same value in the test file. PHPUnit has many assertions: please `read the documentation <https://phpunit.de/manual/>`_ for more information on the many assertion types available.
|
|
|
|
|
|
- Note also that we use the ``@group`` tag: this lets us run specific subsets of tests.
|
|
|
+Note also that we use the ``@group`` tag: this lets us run specific subsets of tests.
|
|
|
|
|
|
To run the test from the command line, we can ``phpunit --group test_exampleImporter`` to **just run tests associated with this importer!** This is very helpful if you have many tests.
|
|
|
|