Tests and Coverage

01 February, 2020 11:45:03

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

Object Coverage (%)
descriptr 78.19
R/ds-launch-shiny-app.R 0.00
R/zzz.R 5.56
R/ds-plots.R 41.84
R/ds-freq-table.R 56.25
R/ds-freq-factor.R 65.33
R/ds-freq-numeric.R 66.67
R/ds-cross-table.R 67.13
R/ds-multistats.R 71.43
R/ds-screener.R 71.64
R/ds-group-summary.R 74.07
R/ds-freq-mult.R 86.79
R/ds-mult-table.R 87.93
R/ds-utils.R 91.77
R/ds-output.R 92.49
R/ds-auto-summary.R 93.65
R/ds-describe.R 97.86
R/ds-summary-stats.R 98.48
R/dist-binomial.R 100.00
R/dist-chisquare.R 100.00
R/dist-f.R 100.00
R/dist-normal.R 100.00
R/dist-t.R 100.00
R/ds-cross-mult.R 100.00


Unit Tests

Unit Test summary is created using the testthat package.

file n time error failed skipped warning
test-auto-summary.R test-auto-summary.R 14 13.33 0 0 0 0
test-binom-dist.R test-binom-dist.R 3 11.81 0 0 0 0
test-chi-dist.R test-chi-dist.R 3 8.64 0 0 0 0
test-cross-table.R test-cross-table.R 29 10.16 0 0 1 0
test-describe.R test-describe.R 97 12.70 0 0 0 0
test-f-dist.R test-f-dist.R 3 5.75 0 0 0 0
test-freq-table.R test-freq-table.R 16 0.41 0 0 2 0
test-group-summary.R test-group-summary.R 9 2.67 0 0 1 0
test-multistats.R test-multistats.R 1 0.33 0 0 0 0
test-normal-dist.R test-normal-dist.R 3 7.08 0 0 0 0
test-output.R test-output.R 7 3.24 0 0 0 0
test-plots.R test-plots.R 21 31.72 0 0 0 0
test-screen.R test-screen.R 14 1.05 0 0 0 0
test-summary-stats.R test-summary-stats.R 3 1.54 0 0 0 0
test-t-dist.R test-t-dist.R 3 4.26 0 0 0 0
test-utils.R test-utils.R 35 0.42 0 0 0 0

Show Detailed Test Results

file context test status n time
test-auto-summary.R test-auto-summary ds_auto_summary throws errors as expected PASS 2 2.18
test-auto-summary.R test-auto-summary ds_auto_group_summary throws errors as expected PASS 4 3.72
test-auto-summary.R test-auto-summary ds_auto_freq_table throws errors as expected PASS 2 1.85
test-auto-summary.R test-auto-summary ds_auto_cross_table throws errors as expected PASS 3 2.80
test-auto-summary.R test-auto-summary output from ds_auto_summary is as expected PASS 1 1.42
test-auto-summary.R test-auto-summary output from ds_auto_group_summary is as expected PASS 1 1.00
test-auto-summary.R test-auto-summary output from ds_auto_cross_table is as expected PASS 1 0.36
test-binom-dist.R binom_dist dist_binom_plot throws the appropriate warning PASS 1 6.67
test-binom-dist.R binom_dist dist_binom_prob throws the appropriate warning PASS 1 3.06
test-binom-dist.R binom_dist dist_binom_perc throws the appropriate warning PASS 1 2.08
test-chi-dist.R chi-dist dist_chi_plot throws the appropriate warning PASS 1 0.21
test-chi-dist.R chi-dist dist_chi_prob throws the appropriate warning PASS 1 5.19
test-chi-dist.R chi-dist dist_chi_perc throws the appropriate warning PASS 1 3.24
test-cross-table.R ds_cross_table output from ds_cross_table matches expected results PASS 21 0.79
test-cross-table.R ds_cross_table ouput from plot.ds_cross_table matches expected output SKIPPED 1 0.01
test-cross-table.R ds_cross_table ds_cross_table throws appropriate error PASS 3 3.29
test-cross-table.R ds_cross_table output from ds_twoway_table is as expected PASS 1 0.19
test-cross-table.R ds_cross_table ds_twoway_table throws appropriate error PASS 3 5.88
test-describe.R describe output from ds_tailobs match expected result PASS 2 0.16
test-describe.R describe ds_tailobs returns the appropriate error PASS 5 0.09
test-describe.R describe output from ds_rindex match expected result PASS 4 0.14
test-describe.R describe ds_rindex returns the appropriate error PASS 3 0.09
test-describe.R describe output from ds_skewness matches expected result PASS 6 0.11
test-describe.R describe ds_skewness returns the appropriate error PASS 2 0.05
test-describe.R describe output from ds_kurtosis matches expected result PASS 6 0.27
test-describe.R describe ds_kurtosis returns the appropriate error PASS 2 0.04
test-describe.R describe ds_css matches Sum Sq from anova PASS 6 0.63
test-describe.R describe ds_css returns the appropriate error PASS 2 0.04
test-describe.R describe output from ds_cvar matches the expected result PASS 2 0.08
test-describe.R describe ds_cvar returns the appropriate error PASS 2 0.10
test-describe.R describe output from ds_mode matches the expected result PASS 6 0.54
test-describe.R describe ds_mode returns the appropriate error PASS 2 0.02
test-describe.R describe output from ds_range matches the expected result PASS 6 0.11
test-describe.R describe ds_range returns the appropriate error PASS 2 0.01
test-describe.R describe output from ds_mdev matches the expected result PASS 6 0.13
test-describe.R describe output from ds_mdev matches the expected result PASS 2 0.01
test-describe.R describe ds_mdev returns the appropriate error PASS 2 0.02
test-describe.R describe output from ds_hmean matches the expected output PASS 3 0.06
test-describe.R describe ds_hmean throws the appropriate error PASS 2 0.01
test-describe.R describe output from ds_gmean matches the expected output PASS 3 0.05
test-describe.R describe ds_gmean throws the appropriate error PASS 2 0.02
test-describe.R describe output from ds_measures_location is as expected PASS 1 0.54
test-describe.R describe output from ds_measures_location is as expected PASS 1 0.27
test-describe.R describe ds_measures_location throws appropriate errors PASS 1 1.06
test-describe.R describe ds_measures_location throws appropriate errors PASS 1 1.28
test-describe.R describe output from ds_measures_variation is as expected PASS 1 0.11
test-describe.R describe output from ds_measures_variation is as expected PASS 1 0.06
test-describe.R describe ds_measures_variation throws appropriate errors PASS 1 0.97
test-describe.R describe ds_measures_variation throws appropriate errors PASS 1 0.82
test-describe.R describe output from ds_measures_symmetry is as expected PASS 1 0.04
test-describe.R describe output from ds_measures_symmetry is as expected PASS 1 0.03
test-describe.R describe ds_measures_symmetry throws appropriate errors PASS 1 0.80
test-describe.R describe ds_measures_symmetry throws appropriate errors PASS 1 0.72
test-describe.R describe output from ds_percentiles is as expected PASS 1 0.11
test-describe.R describe output from ds_percentiles is as expected PASS 1 0.08
test-describe.R describe ds_percentiles throws appropriate errors PASS 1 0.75
test-describe.R describe ds_percentiles throws appropriate errors PASS 1 0.82
test-describe.R describe output from ds_extreme_obs is as expected PASS 1 0.04
test-describe.R describe ds_extreme_obs throws appropriate errors PASS 1 0.76
test-describe.R describe ds_extreme_obs throws appropriate errors PASS 1 0.66
test-f-dist.R f-dist dist_f_plot throws the appropriate warning PASS 1 1.85
test-f-dist.R f-dist dist_f_prob throws the appropriate warning PASS 1 2.23
test-f-dist.R f-dist dist_f_perc throws the appropriate warning PASS 1 1.67
test-freq-table.R freq_table output from ds_freq_table matches expected results PASS 6 0.27
test-freq-table.R freq_table output from ds_freq_table plot is as expected SKIPPED 1 0.00
test-freq-table.R freq_table output from ds_freq_cont matches expected result PASS 8 0.14
test-freq-table.R freq_table output from ds_freq_table plot is as expected SKIPPED 1 0.00
test-group-summary.R ds_group_summary output from ds_group_summary matches the expected result PASS 6 0.57
test-group-summary.R ds_group_summary ds_group_summary throws the appropriate error PASS 2 2.10
test-group-summary.R ds_group_summary output from ds_group_summary plot is as expected SKIPPED 1 0.00
test-multistats.R multistats output from multistats is as expected PASS 1 0.33
test-normal-dist.R normal-dist dist_norm_plot throws the appropriate warning PASS 1 2.25
test-normal-dist.R normal-dist dist_norm_prob throws the appropriate warning PASS 1 2.31
test-normal-dist.R normal-dist dist_norm_perc throws the appropriate warning PASS 1 2.52
test-output.R print output from print_cross matches expected output PASS 1 0.21
test-output.R print output from print_screener matches expected output PASS 1 0.15
test-output.R print output from print_fcont matches the expected result PASS 1 0.33
test-output.R print output from freq_table matches the expected result PASS 1 0.19
test-output.R print output from group_summary matches the expected result PASS 1 0.95
test-output.R print output from print_ftable2 matches the expected result PASS 1 0.74
test-output.R print output from print_cross2 matches the expected result PASS 1 0.67
test-plots.R test-plots ds_plot_scatter throws errors as expected PASS 3 3.18
test-plots.R test-plots ds_plot_histogram throws errors as expected PASS 2 2.04
test-plots.R test-plots ds_plot_density throws errors as expected PASS 2 1.83
test-plots.R test-plots ds_plot_bar throws errors as expected PASS 2 2.20
test-plots.R test-plots ds_plot_box_single throws errors as expected PASS 2 2.83
test-plots.R test-plots ds_plot_bar_stacked throws errors as expected PASS 3 6.53
test-plots.R test-plots ds_plot_bar_grouped throws errors as expected PASS 3 6.70
test-plots.R test-plots ds_plot_box_group throws errors as expected PASS 4 6.41
test-screen.R ds_screener output from ds_screener matches the expected result PASS 13 0.27
test-screen.R ds_screener ds_screener throws the appropriate error PASS 1 0.78
test-summary-stats.R test-summary-stats output from ds_summary is as expected PASS 1 0.05
test-summary-stats.R test-summary-stats ds_summary_stats throws appropriate errors PASS 2 1.49
test-t-dist.R t-dist dist_t_plot throws the appropriate warning PASS 1 0.95
test-t-dist.R t-dist dist_t_prob throws the appropriate warning PASS 1 1.74
test-t-dist.R t-dist dist_t_perc throws the appropriate warning PASS 1 1.57
test-utils.R utils output from formatc matches the expected result PASS 2 0.05
test-utils.R utils output from formatl matches the expected result PASS 2 0.06
test-utils.R utils output from formatr matches the expected result PASS 1 0.02
test-utils.R utils output from formats matches the expected result PASS 1 0.01
test-utils.R utils output from formatnc matches the expected result PASS 1 0.00
test-utils.R utils output from format_gap matches the expected result PASS 1 0.00
test-utils.R utils output from formatol matches the expected result PASS 2 0.00
test-utils.R utils output from l matches the expected result PASS 3 0.04
test-utils.R utils output from percent matches the expected result PASS 2 0.00
test-utils.R utils output from formata matches the expected result PASS 1 0.04
test-utils.R utils output from formatas matches the expected result PASS 1 0.01
test-utils.R utils output from formatter_freq matches the expected result PASS 1 0.00
test-utils.R utils output from row_pct matches the expected result PASS 1 0.02
test-utils.R utils output from col_pct matches the expected result PASS 1 0.00
test-utils.R utils output from formatter matches the expected result PASS 1 0.01
test-utils.R utils output from fround matches the expected result PASS 1 0.02
test-utils.R utils output form xmm matches the expected result PASS 1 0.00
test-utils.R utils output from seql matches the expected result PASS 1 0.01
test-utils.R utils output form xmmp matches the expected result PASS 2 0.02
test-utils.R utils output from seqlp matches the expected result PASS 2 0.02
test-utils.R utils output form xmn matches the expected result PASS 1 0.00
test-utils.R utils output from seqln matches the expected result PASS 1 0.01
test-utils.R utils output from intervals matches expected result PASS 1 0.02
test-utils.R utils output from freq matches the expected result PASS 1 0.00
test-utils.R utils output from stat_uss matches the expected result PASS 1 0.01
test-utils.R utils output from div_by matches the expected result PASS 1 0.05
test-utils.R utils output from uss is as expected PASS 1 0.00

Session Info

Field Value
Version R version 3.5.1 (2018-07-02)
Platform x86_64-w64-mingw32/x64 (64-bit)
Running Windows >= 8 x64 (build 9200)
Language English_India
Timezone Asia/Calcutta
Package Version
testthat 2.0.1
covr 3.2.1
covrpage 0.0.59