The local test runner is pytest. See the setup and run instructions.
To run the real simulator smoke test from Windows, with Docker Desktop running
and the existing WAutoSim container set up, run from the CICD workspace:
powershell -NoProfile -ExecutionPolicy Bypass -File .\CI-CD-Infrastructure\run-smoke.ps1To run every test (unit, integration, smoke) in the container instead:
powershell -NoProfile -ExecutionPolicy Bypass -File .\CI-CD-Infrastructure\run-docker-tests.ps1The smoke-test guide explains the temporary setup and cleanup.
Tests check whether software behaves as expected. This repository separates them by what they check:
| Folder | What belongs here |
|---|---|
tests/unit/ |
Checks of individual functions or rules, such as configuration validation and coordinate conversion. |
tests/integration/ |
Checks that components work together, such as simulation feedback reaching ROS. |
tests/smoke/ |
Short checks that the simulator starts, advances, and shuts down. |
tests/fixtures/ |
Small reusable test inputs and shared setup helpers. |
Read the test guide before adding a test. Each folder has its own guide identifying implemented tests. Unit tests check detection rules, topic naming and test scenes without ROS. Integration tests start the simulator in Docker and check that its ROS topics publish (clock, ground truth, GPS, IMU, camera, lidar, mock object detection) and that start-signal and driver commands take effect. See the current status.
Continuous integration (CI) uses automated checks to help detect problems as code changes are integrated. Continuous delivery or deployment (CD) concerns preparing software for release or deploying it. The project's requirements will determine how these are introduced.
WAutoSim contains the simulator code in a separate repository. This repository will contain tests of the simulator itself
Tests that exercise Linux, ROS, or Chrono must run inside the WAutoSim Docker environment, not on the host. Isolated configuration and geometry tests can avoid launching the simulator. Runner setup is documented in the test guide; each future test must document any additional dependencies it needs.