aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 431f7b9c5db2ded1b9a9043979b950fe8fc9510c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# integration

This repo is for building installers, and then executing xunit tests that run them and verify that they worked.

## Running tests

The main focus of these tests is to validate behavior in a real environment.
Depending on who you talk to, these are integration or system-level or end-to-end (E2E) tests.
They modify machine state so it's strongly recommended *not* to run these tests on your dev box.
They should be run on a VM instead, where you can easily roll back.

1. Run appveyor.cmd to build everything (the tests will refuse to run).
1. Copy the build\Release\netcoreapp3.1 folder to your VM.
1. Open a command prompt and navigate to the netcoreapp3.1 folder.
1. Run the runtests.cmd file to run the tests.

You can modify the runtests.cmd to run specific tests.
For example, the following line runs only the specified test:

> dotnet test --filter WixToolsetTest.BurnE2E.BasicFunctionalityTests.CanInstallAndUninstallSimpleBundle WixToolsetTest.BurnE2E.dll

The VM must have:
1. x64 .NET Core SDK of 5.0 or later (for the test runner)
1. Any version of .NET Framework (for the .NET Framework TestBA)
1. x86 .NET Core Desktop Runtime of 5.0 or later (for the .NET Core TestBA)