Skip to content

Commit

Permalink
update test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlydba committed Oct 3, 2021
1 parent 70c911c commit b1293c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/README.md
Expand Up @@ -19,6 +19,9 @@ uses the naming convention of `sp_name.Tests.sql`. These should mostly adhere to

### Pester tests

All Pester tests are executed by a parent script (`appveyor\run_pester_tests.ps1`) that starts SQLCover to track the
code coverage levels.

All of a stored proc's unit tests are run by a single corresponding Pester script, similarly
named `sp_name.Tests.ps1`, which:

Expand All @@ -31,6 +34,8 @@ at the expense of obfuscating more detailed output (i.e. one failed test among 2

The output is printed in each [Appveyor](https://ci.appveyor.com/project/LowlyDBA/dba-multitool) job if a failure needs to be inspected.

After all tests are completed, the code coverage generated gets uploaded to CodeCov for tracking.

### Appveyor

Each Pester test is then run against each configuration defined in `\appveyor\appveyor.yml` in order
Expand Down

0 comments on commit b1293c6

Please sign in to comment.