John MacFarlane
9d6bca06ee
Pass the buildDir as first argument to test suite.
...
Allows test suite to work with cabal sandboxes.
Previously we hard-coded the build directory.
2013-10-20 12:36:26 -07:00
John MacFarlane
6f736dfa75
Added Tests.Walk.
...
This verifies that walk and query match the generic traversals.
2013-08-10 19:04:15 -07:00
John MacFarlane
809d74b86d
Set locale encoding in test suite.
...
This prevents a "commit buffer (invalid argument)" error on
Windows.
2013-01-18 11:23:09 -08:00
John MacFarlane
acbb4a5e46
Integrated test suite with cabal.
...
To run tests, configure with --enable-tests, then 'cabal test'.
You can specify particular tests using --test-options='-t markdown'.
No output is shown unless tests fail. In the future, we can move
to the detailed-1.0 interface.
2012-07-26 09:43:27 -07:00
John MacFarlane
45e4c123a4
Moved tests to tests/, modified cabal file so lib isn't recompiled.
2012-07-26 08:37:36 -07:00
John MacFarlane
570d8ff08c
Moved tests to src.
2011-01-29 11:24:16 -08:00
John MacFarlane
0833daff4a
Added Tests.Shared with normalize round-trip tests.
2011-01-29 10:03:24 -08:00
John MacFarlane
0acf774011
Added Tests.Readers.Markdown.
2011-01-26 22:09:09 -08:00
John MacFarlane
066cbbad76
Added RST reader tests.
2011-01-26 17:23:56 -08:00
John MacFarlane
2bea4e3729
Reorganized tests.
...
The native writer test needs to run before others that depend on it.
2011-01-22 15:54:24 -08:00
John MacFarlane
373d05601a
Added native writer tests.
2011-01-22 12:37:19 -08:00
John MacFarlane
d0726920db
Added Tests.Writers.ConTeXt and helpers for writer tests.
2011-01-21 10:23:41 -08:00
John MacFarlane
0222f367b1
Keep Tests.Arbitrary but remove quickcheck tests for now.
...
Remove Tests.Shared.
Remove dependency on QuickCheck.
2011-01-14 18:01:57 -08:00
John MacFarlane
d41c17a2d5
Added quickcheck tests for normalize in Shared.
2011-01-14 00:30:36 -08:00
Nathan Gass
e61348dc11
Reordered test files.
2011-01-12 19:12:54 +01:00
Nathan Gass
ec4deb2532
Added some basic testing infrastructure and some latex reader tests.
2011-01-12 14:16:35 +01:00
Nathan Gass
4f6099f350
Started implementing splitted test suite.
...
Moved old tests into Old.hs and added new simple test-pandoc.hs for
loading and grouping together tests from different files. Later
commits will add more testfiles to the suite with more modular tests.
2011-01-12 13:11:08 +01:00
John MacFarlane
cf5e8a824f
test-pandoc: Improved header for diff output.
2011-01-12 11:36:02 +01:00
John MacFarlane
530e3edc0f
test-pandoc: More informative diff output on test failure.
...
Now the test suite tells you the exact command that was run,
and the file containing the expected output.
2011-01-12 11:35:49 +01:00
John MacFarlane
046c9c7d3b
test-pandoc: Relocated --columns=80 to just where it's needed.
...
We only need it for certain table tests, because of the relative
alignments.
2011-01-12 11:35:44 +01:00
John MacFarlane
51d9d8b674
test-pandoc: Fixed + and - in diff output, which were reversed.
2011-01-12 11:35:40 +01:00
John MacFarlane
715e33705f
test-pandoc: More diff-like diffs in case of test failure.
2011-01-12 11:35:34 +01:00
John MacFarlane
eb1d014859
Improvements to test suite.
...
+ You can now specify glob patterns after 'cabal test';
e.g. 'cabal test latex' will only run the latex tests.
+ Instead of detecting highlighting support in Setup.hs,
we now detect it in test-pandoc, by looking to see if
'languages' is null.
+ We now verify the lhs readers against the lhs-test.native,
normalizing with 'normalize'. This makes more sense than
verifying against HTML, which also brings in the HTML writer.
+ Added lhsn-test.nohl.{html,html+lhs}, so we can do the lhs
tests whether or not highlighting has been installed.
2011-01-12 11:35:10 +01:00
Nathan Gass
3bc0a55af0
Removed outdated comments.
2011-01-11 22:37:41 +01:00
Nathan Gass
e8fa72c6a7
Moved test-pandoc.hs to tests directory.
2011-01-11 21:49:49 +01:00