quasilyte/goism

Conformance tests

Closed this issue · 2 comments

Todo: implement tests that check generated code correctness.
Only observable behavior is tested.

These tests shoul work for all supported code generation backends.

To add a new test:

  1. add function (or variable) to be tested into emacs/conformance package.
  2. add code that tests translated package with evalCall for functions and evalVar for variables to tst/conformance package.

One-shot test execution: ./scripts/tst/check-conformance.
Another way to run tests: ./sripts/tst/daemon_start && go test -v tst/conformance && ./scripts/tst/daemon_stop.

For interactive testing, ./scripts/tst/daemon_start is used.

The list of conformance tests will grow over time.
Closing the issue.