diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -1,2 +1,25 @@ | |||
1 | # burn-e2e-tests | 1 | # integration |
2 | burn-e2e-tests - End-to-end tests for WiX bundles, building real installers and running them. | 2 | |
3 | This repo is for building installers, and then executing xunit tests that run them and verify that they worked. | ||
4 | |||
5 | ## Running tests | ||
6 | |||
7 | The main focus of these tests is to validate behavior in a real environment. | ||
8 | Depending on who you talk to, these are integration or system-level or end-to-end (E2E) tests. | ||
9 | They modify machine state so it's strongly recommended *not* to run these tests on your dev box. | ||
10 | They should be run on a VM instead, where you can easily roll back. | ||
11 | |||
12 | 1. Run appveyor.cmd to build everything (the tests will refuse to run). | ||
13 | 1. Copy the build\Release\netcoreapp3.1 folder to your VM. | ||
14 | 1. Open a command prompt and navigate to the netcoreapp3.1 folder. | ||
15 | 1. Run the runtests.cmd file to run the tests. | ||
16 | |||
17 | You can modify the runtests.cmd to run specific tests. | ||
18 | For example, the following line runs only the specified test: | ||
19 | |||
20 | > dotnet test --filter WixToolsetTest.BurnE2E.BasicFunctionalityTests.CanInstallAndUninstallSimpleBundle WixToolsetTest.BurnE2E.dll | ||
21 | |||
22 | The VM must have: | ||
23 | 1. x64 .NET Core SDK of 5.0 or later (for the test runner) | ||
24 | 1. Any version of .NET Framework (for the .NET Framework TestBA) | ||
25 | 1. x86 .NET Core Desktop Runtime of 5.0 or later (for the .NET Core TestBA) \ No newline at end of file | ||