Elchi3 / mdn-doc-tests

:no_entry_sign: UNMAINTAINED :no_entry_sign: This used to check MDN docs against some tests and cleanup tasks while editing, but add-on SDK based add-ons are obsolete. Use https://github.com/mdn/doc-linter-webextension and https://github.com/mdn/doc-linter-rules instead.
Mozilla Public License 2.0
10 stars 8 forks source link

Add unit test number to error message #216

Closed SebastianZ closed 7 years ago

SebastianZ commented 8 years ago

If a unit test contains several tests and an error happens in one of them, it is hard to conclude which of the tests the error relates to.

Example:

Number of API syntax headline matches must be 1 - 2 == 1

The error message should include the index of the test, so look something like this:

API syntax headline test 2: Number of matches must be 1 - 2 == 1

Sebastian