1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
parsedown/tests
Daniel Rudolf 734b4fc3d7
Test Parsedown against cached expect-to-pass CommonMark spec examples
This test suite runs tests the same way as `test/CommonMarkTestWeak.php`, but uses a cached set of CommonMark spec examples in `test/commonmark/`. It is executed along with Parsedown's default test suite and runs various CommonMark spec examples, which are expected to pass. If they don't pass, the Parsedown build fails. The intention of this test suite is to make sure, that previously passed CommonMark spec examples don't fail due to unwanted side-effects of code changes.

You can re-create the `test/commonmark/` directory by executing the PHPUnit group `update`. The test suite will then run `test/CommonMarkTestWeak.php` and create files with the Markdown source and the resulting HTML markup of all passed tests. The command to execute looks like the following:

    $ phpunit --group update
2019-04-07 16:38:07 +01:00
..
data Add breaks configurable 2019-04-07 16:38:05 +01:00
CommonMarkTest.php Test Parsedown against cached expect-to-pass CommonMark spec examples 2019-04-07 16:38:07 +01:00
CommonMarkTestStrict.php Remove reminder comment 2019-04-07 16:38:07 +01:00
CommonMarkTestWeak.php Constant arrays to static vars for PHP 5.5 2019-04-07 16:38:00 +01:00
ParsedownTest.php No markup can be achieved by removing the respective parsing Components 2019-04-07 16:38:07 +01:00