-
-
Notifications
You must be signed in to change notification settings - Fork 87
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:-
- Run all tests:-
user@programmer~:$ simc-test
- Run only unittests:-
user@programmer~:$ simc-test --unit
- 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.