Tests and Coverage
18 September, 2020 00:18:58
This output is created by covrpage.
Coverage
Coverage summary is created using the covr package.
## ⚠️ Not All Tests Passed
## Coverage statistics are approximations of the non-failing tests.
## Use with caution
##
## For further investigation check in testthat summary tables.
| Object | Coverage (%) |
|---|---|
| texPreview | 51.07 |
| R/opts_complete.R | 0.00 |
| R/tex_engine.R | 0.00 |
| R/texPreview-deprecated.R | 0.00 |
| R/opts.R | 5.88 |
| R/tex_addin.R | 12.50 |
| R/zzz.R | 35.71 |
| R/tex_check.R | 47.06 |
| R/get_texpackages.R | 50.00 |
| R/utils.R | 55.00 |
| R/tex_image.R | 69.23 |
| R/tex_viewer.R | 77.27 |
| R/tex_dir_setup.R | 78.95 |
| R/tex_preview.R | 84.85 |
| R/print.R | 85.71 |
| R/tex_return.R | 92.31 |
| R/build_lines.R | 100.00 |
| R/build_usepackage.R | 100.00 |
| R/kable.R | 100.00 |
| R/tex_build.R | 100.00 |
| R/tex_cleanup.R | 100.00 |
Unit Tests
Unit Test summary is created using the testthat package.
| file | n | time | error | failed | skipped | warning |
|---|---|---|---|---|---|---|
| test-error.R | 1 | 0.212 | 0 | 0 | 0 | 0 |
| test-kable.R | 11 | 0.009 | 0 | 0 | 0 | 0 |
| test-packages.R | 1 | 0.002 | 0 | 0 | 0 | 0 |
| test-print.R | 2 | 0.005 | 0 | 0 | 0 | 0 |
| test-rmd.R | 2 | 0.003 | 0 | 0 | 0 | 0 |
| test-tex.R | 10 | 0.271 | 0 | 0 | 0 | 0 |
| test-utilities.R | 9 | 0.083 | 0 | 0 | 0 | 0 |
| test-viewer.R | 2 | 0.473 | 0 | 0 | 0 | 0 |
Show Detailed Test Results
| file | context | test | status | n | time |
|---|---|---|---|---|---|
| test-error.R | Rendering errors | force an error: error message | PASS | 1 | 0.212 |
| test-kable.R | converting to kable | lines: value | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | lines: class | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | lines: attr | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | file: value | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | file: class | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | file: attr | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | self: class | PASS | 1 | 0.000 |
| test-kable.R | converting to kable | self: attr | PASS | 1 | 0.000 |
| test-kable.R | converting to kable | input: value | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | input: class | PASS | 1 | 0.001 |
| test-kable.R | converting to kable | input: attr | PASS | 1 | 0.001 |
| test-packages.R | packages | parse packages: lines | PASS | 1 | 0.002 |
| test-print.R | utilities | print methods: texpreview_tex | PASS | 1 | 0.003 |
| test-print.R | utilities | print methods: texpreview_input | PASS | 1 | 0.002 |
| test-rmd.R | Rendering markdown | html: output device | PASS | 1 | 0.002 |
| test-rmd.R | Rendering markdown | html: png output | PASS | 1 | 0.001 |
| test-rmd.R | Rendering markdown | NA | ERROR | 0 | NA |
| test-tex.R | core tex function | porting to tex: files generated | PASS | 1 | 0.001 |
| test-tex.R | core tex function | porting to tex: class of output | PASS | 1 | 0.001 |
| test-tex.R | core tex function | porting to tex no filedir: no files generated | PASS | 1 | 0.002 |
| test-tex.R | core tex function | porting to tex no filedir: class of output | PASS | 1 | 0.001 |
| test-tex.R | core tex function | keep pdf as an output: files generated | PASS | 1 | 0.001 |
| test-tex.R | core tex function | keep pdf as an output: class of output | PASS | 1 | 0.001 |
| test-tex.R | core tex function | html output: return magick object | PASS | 1 | 0.260 |
| test-tex.R | core tex function | tex lines directly input: validate benchmark | PASS | 1 | 0.002 |
| test-tex.R | core tex function | use svg device: check if file created | PASS | 1 | 0.001 |
| test-tex.R | core tex function | space in file path: check if file created | PASS | 1 | 0.001 |
| test-utilities.R | utility functions of package | build usepackage call: basic call | PASS | 1 | 0.000 |
| test-utilities.R | utility functions of package | build usepackage call: check library is installed | PASS | 1 | 0.020 |
| test-utilities.R | utility functions of package | build usepackage call: add options | PASS | 1 | 0.001 |
| test-utilities.R | utility functions of package | build usepackage call: use bad library name | PASS | 1 | 0.020 |
| test-utilities.R | utility functions of package | build usepackage multiple calls: class | PASS | 1 | 0.000 |
| test-utilities.R | utility functions of package | build usepackage multiple calls: dimension | PASS | 1 | 0.001 |
| test-utilities.R | utility functions of package | find packages: check class | PASS | 2 | 0.001 |
| test-utilities.R | utility functions of package | empty call to addin: cause addin to crash | PASS | 1 | 0.040 |
| test-viewer.R | Rendering viewer | viewer output: validate viewer | PASS | 1 | 0.242 |
| test-viewer.R | Rendering viewer | shiny output: validate shiny output | PASS | 1 | 0.231 |
