O'Reilly logo

Building Parsers with Java™ by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.4. Summary

Random testing and feature testing complement each other, testing all the language features you can think of and testing valid language elements you might never think of. For random testing, you can use the ParserTester hierarchy in the sjm packages. You may need to override these classes if your parser requires a special tokenizer or a target. For feature testing, you should acquire a testing framework such as JUnit and use it to verify that your parser (still) has all the functionality you intend.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required