Skip to content
frankhart2018 edited this page Jan 23, 2021 · 1 revision

Running tests

Tests make sure that your change to the compiler does not break any existing functionality, so make sure you run the tests before submitting a PR (if you don't know what this means then be patient, it will be mentioned in a later page).

To follow the below commands, you need to have simC's test-suite installed, if you don't then install it using the directions given in Installation.

The following steps can be followed to run the tests:-

  1. Run all tests:-
user@programmer~:$ simc-test
  1. Run only unittests:-
user@programmer~:$ simc-test --unit
  1. Run only codetests:-
user@programmer~:$ simc-test --code

In some cases tests might fail as there have been changes either in implementation of the core components or updates in simC's syntax, and only in that case should you raise an issue in simC test-suite issues. Before submitting an issue there, please make sure whether the tests are failing due to error in your code or not.