Skip to content
jvf edited this page Jun 15, 2013 · 24 revisions

Testing

Test Coverage in Moduls

The fuc group decided a goal of 90% test coverage for the project.

Integration Tests

Integration tests are tests which test the whole compiler chain: Lexer -> Parser -> Semantic Analyser -> IR Generator -> LLVM Backend.

The integration tests can be found in fuc/code/test. In order to be able to use the example programes in different test classes, they are centralized in javaExampleProgs.java, TestBase.java provides the base class for all integration tests.

There are two kinds of integration tests:

  1. Compilation Tests

  2. Runtime Tests

Clone this wiki locally