зеркало из
1
0
Форкнуть 0
MSIX-PackageSupportFramework/tests
Darren Hoehna 8af3e1ddaa Adding documentation on testing 2019-11-01 20:33:37 -07:00
..
TestRunner Getting 32 bit powershell tests to run 2019-05-23 17:05:16 -07:00
common Removing extra whitespces 2019-04-08 15:18:25 -07:00
fixups Merge branch 'develop' into master 2019-10-30 16:13:23 -07:00
scenarios Modifying test because known folder does not redirect to the same location in the package path 2019-11-01 20:06:13 -07:00
scripts Breaking Change: Renaming fraemwork to align with functionality 2018-09-25 14:39:02 -07:00
Common.Tests.Build.props Updated for final release 2018-07-10 14:27:56 -07:00
Common.Tests.props Updated for final release 2018-07-10 14:27:56 -07:00
README.md Adding documentation on testing 2019-11-01 20:33:37 -07:00
RunTests.ps1 Added debug logging at API level 2019-06-23 14:02:33 -04:00
tests.sln Adding new Powershell Script test 2019-04-11 18:26:07 -07:00

README.md

#Testing Package Support Framework has several regression tests that are required to pass before your code will be pulled into the develop branch.

Below will be two sets of instructions. One set will tell you how to run all the tests. The second set will tell you how to debug tests.

##How Package Support Framework runs tests Because Package Support Framework needs to hook into an application all tests are packaged into an application, installed on your computer, then ran.

At the end of the RunTests.ps1 script all the applications are removed.

##Running all tests. Please follow the instructions to run all the tests and see if they all pass.

  1. Open a admin Visual Studio developer command prompt.
  2. Navigate to the root of the repository (MSIX-PackageSupportFramework)
  3. Run "buildall.cmd"
  4. If you have build errors please fix them before continuing.
  5. Open an amin powershell prompt.
  6. Navigate to the tests directory of the repository.
  7. run ".\runtests.ps1"

Wait for the tests to run and finish. When the script is finished it will tell you how many tests failed. If no tests failed you can make the pull request.

##Debugging tests Sometimes our changes will make a test fail. If that is the case you might need to debug a test to figure out why it failed so you can fix your code.

Please follow the below steps to debug tests.

  1. Run the tests in the "Running all tests" section to see