[antlr-interest] unit tests

Robert Hill rob.hill at blueyonder.co.uk
Thu Nov 23 13:06:40 PST 2006


Hi all, just want to open up a bit of a discussion, how does everyone else
handle unit testing for a compiler/code generator.
Or if you're using JUnit/NUnit how do test your Antlr output ?

File compares on the output sources? How do you test individual constructs?
Hundred of files( or embedded strings) with each one having a single example
to the construct in question?

Just looking for some good ideas ( or examples :) ) on implementation (I'll
be using JUinit btw)

Cheers all!

/2ob






More information about the antlr-interest mailing list