This output is created by covrpage.

Unit Tests

Unit Test summary is created using the testthat package.

file n time error failed skipped warning icon
test-actionbutton_dsfr_template.R 9 0.085 0 0 0 0
test-actionbutton_dsfr.R 2 0.010 0 0 0 0
test-column_dsfr.R 3 0.027 0 0 0 0
test-convert_file_to_dsfr.R 2 0.058 0 0 0 0
test-convert_to_dsfr.R 6 0.359 0 0 0 1 ⚠️
test-fluidpage_dsfr_template.R 9 0.048 0 0 0 0
test-fluidpage_dsfr.R 2 0.039 0 0 0 0
test-fluidrow_dsfr.R 3 0.015 0 0 0 0
test-get_dsfr_version.R 3 0.024 0 0 0 0
test-header_dsfr_template.R 17 0.063 0 0 0 0
test-header_dsfr.R 2 0.021 0 0 0 0
test-layout_dsfr_template.R 9 0.032 0 0 0 0
test-parse_html.R 2 0.005 0 0 0 0
test-parse_to_xml.R 4 0.019 0 0 0 0
test-radiobuttons_dsfr_template.R 13 0.258 0 0 0 0
test-radiobuttons_dsfr.R 3 0.046 0 0 0 0
test-radiobuttons_unique_dsfr_template.R 13 0.067 0 0 0 0
test-render_node.R 2 0.005 0 0 0 0
test-start.R 1 0.003 0 0 0 0
test-updateradiobuttons_dsfr.R 7 0.023 0 0 0 0
Show Detailed Test Results
file context test status n time icon
test-actionbutton_dsfr_template.R actionbutton_dsfr_template actionButton_dsfr_template works PASS 9 0.085
test-actionbutton_dsfr.R actionbutton_dsfr actionButton_dsfr works PASS 2 0.010
test-column_dsfr.R column_dsfr column_dsfr works PASS 3 0.027
test-convert_file_to_dsfr.R convert_file_to_dsfr convert_file_to_dsfr works PASS 2 0.058
test-convert_to_dsfr.R convert_to_dsfr convert_to_dsfr works WARNING 6 0.359 ⚠️
test-fluidpage_dsfr_template.R fluidpage_dsfr_template fluidPage_dsfr_template works PASS 9 0.048
test-fluidpage_dsfr.R fluidpage_dsfr fluidPage_dsfr works PASS 2 0.039
test-fluidrow_dsfr.R fluidrow_dsfr fluidRow_dsfr works PASS 3 0.015
test-get_dsfr_version.R get_dsfr_version get_dsfr_version works PASS 3 0.024
test-header_dsfr_template.R header_dsfr_template header_dsfr_template works PASS 17 0.063
test-header_dsfr.R header_dsfr header_dsfr works PASS 2 0.021
test-layout_dsfr_template.R layout_dsfr_template layout_dsfr_template works PASS 9 0.032
test-parse_html.R parse_html tester parse_html PASS 2 0.005
test-parse_to_xml.R parse_to_xml parse_to_xml works PASS 4 0.019
test-radiobuttons_dsfr_template.R radiobuttons_dsfr_template radioButtons_dsfr_template works PASS 13 0.258
test-radiobuttons_dsfr.R radiobuttons_dsfr radioButtons_dsfr works PASS 3 0.046
test-radiobuttons_unique_dsfr_template.R radiobuttons_unique_dsfr_template radioButtons_unique_dsfr_template works PASS 13 0.067
test-render_node.R render_node render_node works PASS 2 0.005
test-start.R start multiplication works PASS 1 0.003
test-updateradiobuttons_dsfr.R updateradiobuttons_dsfr updateRadioButtons_dsfr works PASS 7 0.023
Failed Warning Skipped
🛑 ⚠️ 🔶
Session Info
Field Value
Version R version 4.2.0 (2022-04-22)
Platform x86_64-pc-linux-gnu (64-bit)
Running Ubuntu 20.04.4 LTS
Language fr_FR
Timezone Europe/Paris
Package Version
testthat 3.1.4
covr 3.5.1
covrpage 0.1

Description of coverage report

  • Total coverage percentage, this is the total number of lines covered by a test divided by the total number of lines requiring testing.
  • File = Name of the file, the code coverage is calculated per file.
  • Lines = Number of lines in the file, corresponds to the number of lines inside the file.
  • Relevant = Corresponds to the lines of code to be tested (i.e. the lines inside the function brackets with the brackets and comments removed).
  • Covered = Number of lines covered by a test
  • Missed = Number of lines not covered by a test
  • Hits/Line = Corresponds to the average number of times specific lines are tested in the file.
    • In other words, if I have an 11-lines file where (1) the first 6 lines are tested 4 times, (2) the seventh is tested 1 time, (3) the last 4 are tested 10 times. The calculation is then: ((6 * 4) + 1 + (10 * 4))/11 = 6. This gives the average number of times a line is tested, here 6.
  • Coverage = corresponds to the percentage of lines covered by a test. Calculation: Covered / Relevant * 100, number of lines covered by a test divided by the number of lines requiring testing.
  • If we go into detail by file, the color code is as follows:
    • green line = line tested by at least one test (the x? corresponds to the number of times the line is tested)
    • red line = line not covered by a test
    • white line = lines not to be tested (comments, …)