Description Usage Arguments Functions
These functions extract tests, run tests and create a report of the coverage for a single file.
| 1 2 3 4 5 | file_coverage(file = rstudioapi::getSourceEditorContext()$path,
  pkg = ".", ...)
covr_file(coverage = file_coverage(), report.file = NULL,
  show.report = interactive())
 | 
| file | The file to extract test from and compute coverage. | 
| pkg | The package  | 
| ... | Arguments passed on to  
 | 
| coverage | Coverage returned from  | 
| report.file | Where to save the HTML report. | 
| show.report | if the HTML report should be displayed. | 
file_coverage: Extract tests and compute the coverage for the given file.
covr_file: Create a report for a single
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.