Sharpie / RTikZDevice

A R package for producing graphics output as PGF/TikZ code for use in TeX documents.
32 stars 36 forks source link

Allow graphics tests to be tagged and filtered #24

Closed Sharpie closed 13 years ago

Sharpie commented 13 years ago

Running the entire graphics testsuite can be a pain when you just want to see if a given category of graphs is broken or fixed yet. Waiting for all the other graphs to run is a waste of time.

Should be easy to do by adding a tag field to the test structure and running the test list through Filter in test_graphics.R:

if (!is.null(tags_to_test)) {
  test_graphs <- Filter(function(graph){any(graph$tags %in% tags_to_test)}, test_graphs)
}

Where tags_to_test could be a list of tags specified on the command line.