Description Usage Arguments Value
This function is the equivalent of the pltest.R
script which, given a directory
runs the tests file therein and reports the results in a JSON file for PrairieLearn to
consume.
1 2 | test_question(tests_dir = "/grade/tests/tests",
results_file = "results.json")
|
tests_dir |
Directory containing the test files for a question |
results_file |
JSON file into which results are written |
The results data.frame is returned, but the functions is invoked for its side-effect of creating the JSON file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.