Files
Anthony Leonardo Gracio 16ea8f47fe Merge branch 'topic/windows' into 'master'
Stabilize test on Windows

See merge request eng/ide/gnatstudio!426

(cherry picked from commit 7d8e116816)

709783a9 Stabilize test on Windows (no-issue-check)
2024-04-29 09:45:43 +00:00
..
2023-09-27 16:56:34 +04:00
2021-03-25 14:12:24 +01:00

GPS testsuite

Writing tests

Tests are in the directory tests, with one subdirectory per test.

Each test should contain:

  • a test.py file, which is loaded by GPS.
  • a test.yaml file which contains metadata needed to run the test.

As an example, look at the following tests:

  • tests/minimal - this test contains the minimal test framework: copy this to start a new test
  • tests/Z999-999.xfail - this test contains a test which is expected to fail.

To test for functionality, use the GPS scripting API, and in particular make use of gs_utils.internal.utils.gps_assert:

gps_assert(something_observed, something_expected, "message to emit")

Running tests

To run the entire testsuite:

./run.sh

To run one individual test pass its directory as parameter:

./run.sh tests/minimal/

The complete results are in the out/ directory.