ARudik / phc

Automatically exported from code.google.com/p/phc
0 stars 0 forks source link

Individual tests #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We want to test each error, and not just the ones in basic_parse_test.

For example, we have no way to say "test that error X is printed for a
plugin with no run method"

Original issue reported on code.google.com by paul.biggar on 16 Nov 2007 at 7:58

GoogleCodeExporter commented 9 years ago
Related to this, we want to test more precisely. Rather than testing each pass, 
with
the entire suite, we should test more coarsely (ie interpret tests at major 
points),
with more specific tests for particular options. For example:

<?php /*{ option: "--udump=hir" output: "Error: cant dump"} */ ?>

This should contribute to lowering the testing time aswell.

Original comment by paul.biggar on 16 Nov 2007 at 8:07

GoogleCodeExporter commented 9 years ago
The ability exists, and tests in the test/subjects/phc directory use this. 
However,
we are currently not testing a large number of things using this method.

Original comment by paul.biggar on 23 May 2008 at 2:04

GoogleCodeExporter commented 9 years ago

Original comment by paul.biggar on 23 May 2008 at 2:04