Idris2/tests
Edwin Brady 9865765d1d
Normalise errors on display, not when they arise (#1906)
* Move Context into its own file

Just the core definition - this is so that we have access to it in
Core.Core, for inclusion in error messages, to save normalisation of
terms in errors until we actually show them.

* Normalise errors on display, not when they arise

This can save a lot of time in ambiguity resolution if the errors are
complicated, because the errors might never be displayed if it's in an
abandoned branch.

This involves lifting 'Context' out of Core.Context, because we need to
store it in Error, which is needed by Core, which in turn is needed in
Core.Context.

Also moved a couple of test caes from ttimp to idris2, so that the
errors get rendered properly and won't need updating unnecessarily. In
fact all of the ttimp tests - which were just part of the initial
scaffolding - are probably now subsumed by the idris2 tests.

* Add new coverage001 test files
2021-09-06 23:37:59 +01:00
..
allbackends Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
base Return a Vect from Stream take (#1812) 2021-08-30 16:00:20 +01:00
chez Merge pull request #1721 from edwinb/AliasQli-master 2021-07-15 23:17:53 +01:00
codegen Add foldMap to Foldable (#1483) 2021-06-01 15:05:04 +01:00
contrib Add copyDir function (#1805) 2021-08-30 16:42:58 +01:00
gambit/bitops001 Add Data.Bits to base (#1033) 2021-03-04 20:59:56 +00:00
ideMode [ new ] semantic highlighting via the IDE mode (#1868) 2021-08-27 14:47:35 +01:00
idris2 Normalise errors on display, not when they arise (#1906) 2021-09-06 23:37:59 +01:00
node [ fix ] fix #1839 (#1857) 2021-08-24 15:43:22 +01:00
prelude Add tests for Nat ranges and fix bad range [1,2..1] behaviour. (#1794) 2021-07-28 06:52:59 +01:00
racket Patch CVs and sleep in Racket (#1059) 2021-03-15 13:43:12 +00:00
refc Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
templates Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
ttimp Normalise errors on display, not when they arise (#1906) 2021-09-06 23:37:59 +01:00
typedd-book Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
vmcode/basic001 Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
Main.idr Normalise errors on display, not when they arise (#1906) 2021-09-06 23:37:59 +01:00
Makefile [ cleanup ] Test.Golden (#1526) 2021-06-21 17:30:11 +01:00
README.md Test templates (#585) 2020-11-27 15:40:02 +00:00
tests.ipkg Set PREFIX for tests 2021-04-19 11:23:58 +01:00

Tests

Note: The commands listed in this section should be run from the repository's root folder.

Run all tests: make test

To run only a subset of the tests use: make test only=NAME. NAME is matched against the path to each test case.

Examples:

  • make test only=chez will run all Chez Scheme tests.
  • make test only=ttimp/basic will run all basic tests for TTImp.
  • make test only=idris2/basic001 will run a specific test.

Templates for common test instances can be found in the templates folder.