scalar/Scalar.UnitTests
Derrick Stolee 24d56dbd35 Make InvalidRepoException exit normally
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2020-02-20 12:40:18 -05:00
..
Category Standardize on LF thoughout the repository. 2019-08-12 20:07:41 -04:00
Common Make InvalidRepoException exit normally 2020-02-20 12:40:18 -05:00
Data Standardize on LF thoughout the repository. 2019-08-12 20:07:41 -04:00
Git Make InvalidRepoException exit normally 2020-02-20 12:40:18 -05:00
Maintenance Create ProgressMessage for every maintenance step 2020-01-16 20:25:49 -05:00
Mock Remove all vestiges of the mount process from C# code 2020-01-28 14:24:49 +00:00
Service Remove all vestiges of the mount process from C# code 2020-01-28 14:24:49 +00:00
Tracing Delete all references to mount id 2019-11-25 08:00:32 -05:00
Upgrader Remove all vestiges of the mount process from C# code 2020-01-28 14:24:49 +00:00
Windows Cleanup NamedPipe related code 2019-11-07 15:23:08 -08:00
Readme.md Upgrade Scalar.UnitTests project 2019-11-07 16:05:43 +00:00
Scalar.UnitTests.csproj Upgrade Scalar.UnitTests project 2019-11-07 16:05:43 +00:00
Setup.cs Standardize on LF thoughout the repository. 2019-08-12 20:07:41 -04:00

Readme.md

Scalar Unit Tests

  • Targets .NET Core
  • Contains all unit tests that OS agnostic
  • Conditionally includes the Windows\** directory when running on Windows.

Running Unit Tests

Option 1: dotnet test

dotnet test will run Scalar.UnitTests, and if on Windows also the Windows-only tests.

Option 2: Run individual tests from Visual Studio

Unit tests can both be run from Visual Studio. Simply open the Test Explorer (VS for Windows) or Unit Tests Pad (VS for Mac) and run or debug the tests you wish.

Adding New Tests

Whenever possible new unit tests should be added to the root Scalar.UnitTests direcotry. If the new tests are specific to the Window OS then they will need to be added to the Scalar.UnitTests\Windows directory.