This repo is all about running Automated NAV Tests from PowerShell. The objects provided are created with Visual Studio Code and the NAV Development Preview (June 2017)
Running automated tests from the commandline/powershell is not possible because the automated tests require a user interface and the Invoke-NAVCodeunit cmdlet does not support this.
A powershell function which does the following:
- Prepare the test run by creating a Test Suite with the desired tests
- Startup the RTC as a new process with a codeunit which starts the execution of the tests
- Monitor the CAL Test Suite table with Invoke-SqlCmd until the tests are finished
- Close the process