Skip to content

Running using NUnit

James edited this page Nov 30, 2017 · 2 revisions

It is possible to run the test suite from the command line using NUnit as follows:

  1. Download and install NUnit Console 3.6 (http://www.nunit.org/index.php?p=download)
  2. Download the latest assurance test suite code as zip file from github (https://github.com/nhsconnect/gpconnect-provider-testing)
  3. Download the supporting gpconnect-fhir project from github (https://github.com/nhsconnect/gpconnect-fhir)
  4. Configure the App.config in the gpconnect-provider-testing to point to the correct server and use the correct SSL certificates.
  5. In the console (cmd) navigate to the "gpconnect-provider-testing\GPConnect.Provider.AcceptanceTests" folder.
  6. To run the tests using the nunit-console I ran the following command:

"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" GPConnect.Provider.AcceptanceTests.csproj This should run all the tests and create an output file in the directory you are in called "TestResult.xml". On the output it should show you the number of passes and fails.

Clone this wiki locally