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.159 tracks/powershell/docs/TESTS.md
trackler-2.2.1.158 tracks/powershell/docs/TESTS.md
trackler-2.2.1.157 tracks/powershell/docs/TESTS.md
trackler-2.2.1.156 tracks/powershell/docs/TESTS.md
trackler-2.2.1.155 tracks/powershell/docs/TESTS.md
trackler-2.2.1.154 tracks/powershell/docs/TESTS.md
trackler-2.2.1.153 tracks/powershell/docs/TESTS.md
trackler-2.2.1.152 tracks/powershell/docs/TESTS.md
trackler-2.2.1.151 tracks/powershell/docs/TESTS.md
trackler-2.2.1.150 tracks/powershell/docs/TESTS.md
trackler-2.2.1.149 tracks/powershell/docs/TESTS.md
trackler-2.2.1.148 tracks/powershell/docs/TESTS.md
trackler-2.2.1.147 tracks/powershell/docs/TESTS.md
trackler-2.2.1.146 tracks/powershell/docs/TESTS.md
trackler-2.2.1.145 tracks/powershell/docs/TESTS.md
trackler-2.2.1.144 tracks/powershell/docs/TESTS.md