Skip to content

alttester/EXAMPLES-CSharp-Standalone-AltTrashCat

Repository files navigation

Standalone Build with CSharp Tests

This repository shows a few C# tests that use the page object model and AltTester to test the Unity endless runner sample: https://assetstore.unity.com/packages/essentials/tutorial-projects/endless-runner-sample-game-87901

NuGet package

This project already has the AltDriver inside, but otherwise would require to add https://www.nuget.org/packages/AltTester-Driver package in order to work.

Running the tests on Windows or MacOS

The tests are meant to be run on an Windows or MacOS device. Create a folder App under project.

To start the tests, depending of your OS run:

❗ Starting with version 2.0.0, the AltTester Desktop must be running on your PC while the tests are running.

❗ To manually open the Allure report, navigate to the allure-reports folder and open the index.html file with live server.

This script will:

  • start the app on your device
  • create an allure-results folder
  • run the tests
  • generate and start Allure report
  • stop the app after the tests are done