-
Notifications
You must be signed in to change notification settings - Fork 3
Home
maguro edited this page Feb 27, 2011
·
7 revisions
An ANTLR v3 JUnit testing extension.
- Leverages existing knowledge of JUnit
- Can be used to test the structure of a parse tree
- No need to create extra classes to use this unit testing framework
These tutorials assume that one is familiar with writing JUnit tests and using Java annotations.
- An simple example of a test can be found at CMinusTest.java. It contains lexer and
parser tests for the
CMinus.g
grammar found in the book The Definitive ANTLR Reference: Building Domain-Specific Languages.
- Setup your Maven or Ivy project to include AUnit by reading details at Maven & Ivy
- Discuss AUnit at http://groups.google.com/group/aunit
- Check out code at http://github.com/maguro/aunit/
This wiki's contents are licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License