|
|
# How to run the project's unit tests
|
|
|
|
|
|
# Testing the AmbientTalk distribution
|
|
|
|
|
|
This page explains how to run unit tests that test the AmbientTalk interpreter and distribution.
|
|
|
|
|
|
## Running the Java unit tests
|
|
|
|
|
|
The Java unit tests are written using the JUnit unit testing framework. To test the AmbientTalk interpreter, run the test suite defined in `test/edu/vub/at/InterpreterTests.java`. A separate unit test tests the interpreter's distribution layer: `test/edu/vub/at/natives/DistributionTest.java`.
|
|
|
|
|
|
The Java unit tests were primarily used in the beginning of the AmbientTalk interpreter development cycle. These tests are relatively limited, but if any of them fails then probably the AmbientTalk unit tests will not run either.
|
|
|
|
|
|
## Running the AmbientTalk unit tests
|
|
|
|
|
|
The AmbientTalk unit tests are written in a unit testing framework developed within AmbientTalk itself. To test the correct functioning of the AmbientTalk distribution (including some parts of the system library), it suffices to evaluate:
|
|
|
```
|
|
|
/.test.libraryTestSuite.testATDistribution();
|
|
|
```
|
|
|
|
|
|
More information about AmbientTalk's unit testing framework can be found [here](http://soft.vub.ac.be/amop/at/tutorial/appendix#unit_testing_framework). |