Sha256: 9ff8fbc25e5e701ca257848b790bcbfbbd1bffa9a7168a705b4127e1699ace0b

Contents?: true

Size: 737 Bytes

Versions: 36

Compression:

Stored size: 737 Bytes

Contents

# Tests

The exercises all use the [Pester](https://github.com/pester/Pester) framework for mocking and testing.

All tests will be in a file named `[exercise].Tests.ps1` as is the standard for the Pester framework.

To run tests from PowerShell you can simply run:

``` PowerShell
Invoke-Pester
```

This will run all `.Tests.ps1` files it can find in the directory.

## Running tests in Visual Studio Code

You can run tests in visual studio code in a couple of ways:

1. Running the `.Tests.ps1` script from the Debug menu. Keyboard short cuts are: `F5` or `Shift + F5`
1. From within the editor by clicking on the "Run Tests" link above the `Describe` keyword in the test code itself
1. Configuring a Task to run the Pester framework

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/powershell/docs/TESTS.md
trackler-2.2.1.179 tracks/powershell/docs/TESTS.md
trackler-2.2.1.178 tracks/powershell/docs/TESTS.md
trackler-2.2.1.177 tracks/powershell/docs/TESTS.md
trackler-2.2.1.176 tracks/powershell/docs/TESTS.md
trackler-2.2.1.175 tracks/powershell/docs/TESTS.md
trackler-2.2.1.174 tracks/powershell/docs/TESTS.md
trackler-2.2.1.173 tracks/powershell/docs/TESTS.md
trackler-2.2.1.172 tracks/powershell/docs/TESTS.md
trackler-2.2.1.171 tracks/powershell/docs/TESTS.md
trackler-2.2.1.170 tracks/powershell/docs/TESTS.md
trackler-2.2.1.169 tracks/powershell/docs/TESTS.md
trackler-2.2.1.167 tracks/powershell/docs/TESTS.md
trackler-2.2.1.166 tracks/powershell/docs/TESTS.md
trackler-2.2.1.165 tracks/powershell/docs/TESTS.md
trackler-2.2.1.164 tracks/powershell/docs/TESTS.md
trackler-2.2.1.163 tracks/powershell/docs/TESTS.md
trackler-2.2.1.162 tracks/powershell/docs/TESTS.md
trackler-2.2.1.161 tracks/powershell/docs/TESTS.md
trackler-2.2.1.160 tracks/powershell/docs/TESTS.md