Closed Sharpie closed 13 years ago
I agree that the test suite is unwieldy. I do see some pros and cons in using a traditional testing suite:
Pros:
Cons:
Many of the things we would like to test for (such as correct color values) are not exposed at the R level and so cant be tested with an R level test suite.
Otherwise Im all for it.
Clean up old testing scripts, update README
The tikzDevice testing suite has now been re-implemented on top of test_that. Some work remains to be done:
compare
tool.Closed by d889fe6c4f74372345aad90404ee96ab91efe3df.
The tikz testsuite is getting a little bit long in the tooth. Specifically, two issues related to R 2.12.x should have been caught by the testsuite which would have removed the need for a 0.5.3 release:
Proposal:
Migrate the test scripts to a unit testing framework, such as Hadley's
test_that
.Benefits:
test_that
provides excellent capabilities for isolating tests so that the actions and results of one test do not affect the execution of another test.test_that
contains failure checks. Tests can be designed to fail and the framework checks to see that the expected error/warning message is generated.Comments?