Tests and Coverage

06 December, 2018 18:15:32

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

Object Coverage (%)
ggstatsplot 95.64
R/ggcoefstats.R 68.58
R/helpers_ggcoefstats.R 72.73
R/helpers_effsize_ci.R 88.49
R/helpers_ggbetween_anova_subtitles.R 97.76
R/helpers_pairwise_comparison.R 98.14
R/helpers_bf_tests.R 98.36
R/helpers_ggpiestats_subtitles.R 98.70
R/ggcorrmat.R 99.56
R/ggbetweenstats.R 99.72
R/combine_plots.R 100.00
R/ggdotplotstats.R 100.00
R/gghistostats.R 100.00
R/ggpiestats.R 100.00
R/ggscatterstats.R 100.00
R/grouped_ggbetweenstats.R 100.00
R/grouped_ggcorrmat.R 100.00
R/grouped_ggdotplotstats.R 100.00
R/grouped_gghistostats.R 100.00
R/grouped_ggpiestats.R 100.00
R/grouped_ggscatterstats.R 100.00
R/helpers_ggbetween_t_subtitles.R 100.00
R/helpers_ggbetweenstats.R 100.00
R/helpers_ggcorrmat.R 100.00
R/helpers_gghistostats.R 100.00
R/helpers_gghistostats_subtitles.R 100.00
R/helpers_ggscatterstats_subtitles.R 100.00
R/helpers_messages.R 100.00
R/switch_functions.R 100.00
R/theme_ggstatsplot.R 100.00


Unit Tests

Unit Test summary is created using the testthat package.

file n time error failed skipped warning
test_argument_count.R 2 0.06 0 0 0 0
test_chisq_v_ci.R 10 2.37 0 0 0 0
test_combine_plots.R 5 0.84 0 0 0 0
test_cor_test_ci.R 12 0.50 0 0 0 0
test_ggbetweenstats.R 26 14.02 0 0 0 0
test_ggcoefstats.R 86 5.03 0 0 0 0
test_ggcorrmat.R 55 0.36 0 0 0 0
test_ggdotplotstats.R 29 0.43 0 0 0 0
test_gghistostats.R 76 1.30 0 0 0 0
test_ggpiestats.R 37 12.26 0 0 0 0
test_ggscatterstats.R 37 2.51 0 0 0 0
test_ggsignif_position_calculator.R 4 0.00 0 0 0 0
test_grouped_ggbetweenstats.R 3 2.62 0 0 0 0
test_grouped_ggcorrmat.R 8 2.49 0 0 0 0
test_grouped_ggdotplotstats.R 2 1.98 0 0 0 0
test_grouped_gghistostats.R 3 2.64 0 0 0 0
test_grouped_ggpiestats.R 8 32.89 0 0 0 0
test_grouped_ggscatterstats.R 3 0.89 0 0 0 0
test_helper_messages.R 12 0.14 0 0 0 0
test_helpers_bf_tests.R 24 0.22 0 0 0 0
test_helpers_ggbetweenstats.R 6 0.28 0 0 0 0
test_histo_labeller.R 8 0.07 0 0 0 0
test_kw_eta_h_ci.R 4 0.91 0 0 0 0
test_lm_effsize_ci.R 9 3.14 0 0 0 0
test_numdf_summary.R 6 0.03 0 0 0 0
test_pairwise_ggsignif.R 59 30.81 0 0 0 0
test_pairwise_p.R 29 23.75 0 0 0 0
test_pairwise_p_caption.R 3 0.00 0 0 0 0
test_robcor_ci.R 8 0.28 0 0 0 0
test_subtitle_anova_bayes.R 1 5.44 0 0 0 0
test_subtitle_anova_parametric.R 8 1.18 0 0 0 0
test_subtitle_anova_robust.R 4 1.19 0 0 0 0
test_subtitle_contingency_tab.R 1 1.14 0 0 0 0
test_subtitle_contingency_tab_gof.R 4 0.11 0 0 0 0
test_subtitle_contingency_tab_paired.R 1 0.06 0 0 0 0
test_subtitle_friedman_nonparametric.R 1 0.05 0 0 0 0
test_subtitle_ggscatterstats.R 3 0.54 0 0 0 0
test_subtitle_kw_nonparametric.R 1 1.54 0 0 0 0
test_subtitle_mann_nonparametric.R 1 0.18 0 0 0 0
test_subtitle_mann_paired.R 2 0.07 0 0 0 0
test_subtitle_t_bayes.R 1 0.14 0 0 0 0
test_subtitle_t_bayes_paired.R 1 0.17 0 0 0 0
test_subtitle_t_onesample.R 7 0.93 0 0 0 0
test_subtitle_t_parametric.R 2 0.20 0 0 0 0
test_subtitle_t_parametric_paired.R 2 0.04 0 0 0 0
test_subtitle_t_robust_paired.R 2 2.21 0 0 0 0
test_switch_statements.R 17 0.02 0 0 0 0
test_t1way_ci.R 5 4.10 0 0 0 0
test_theme_ggstatsplot.R 11 0.07 0 0 0 0
test_yuend_ci_paired.R 5 0.37 0 0 0 0

Show Detailed Test Results

file context test status n time
test_argument_count.R argument_count argument_count is correct PASS 2 0.06
test_chisq_v_ci.R chisq_v_ci chisq_v_ci works PASS 10 2.37
test_combine_plots.R combine_plots checking if combining plots works PASS 5 0.84
test_cor_test_ci.R cor_test_ci cor_test_ci works PASS 12 0.50
test_ggbetweenstats.R ggbetweenstats error when x and outlier.label are same PASS 1 0.02
test_ggbetweenstats.R ggbetweenstats outlier.labeling works across vector types PASS 3 2.95
test_ggbetweenstats.R ggbetweenstats checking labels and data from plot PASS 16 2.75
test_ggbetweenstats.R ggbetweenstats checking mean labels are working PASS 3 0.42
test_ggbetweenstats.R ggbetweenstats subtitles with bayesian tests work PASS 2 7.13
test_ggbetweenstats.R ggbetweenstats subtitle works with equal variance assumption PASS 1 0.75
test_ggcoefstats.R ggcoefstats ggcoefstats with lm model PASS 11 0.09
test_ggcoefstats.R ggcoefstats ggcoefstats with glmer model PASS 12 0.37
test_ggcoefstats.R ggcoefstats ggcoefstats with aov model PASS 19 0.13
test_ggcoefstats.R ggcoefstats ggcoefstats with aov model PASS 21 0.11
test_ggcoefstats.R ggcoefstats ggcoefstats with non-partial variants of effect size for f-statistic PASS 2 4.01
test_ggcoefstats.R ggcoefstats ggcoefstats works with data frames PASS 20 0.32
test_ggcoefstats.R ggcoefstats unsupported model objects PASS 1 0.00
test_ggcorrmat.R ggcorrmat checking ggcorrmat - without NAs - pearson’s r PASS 16 0.09
test_ggcorrmat.R ggcorrmat checking ggcorrmat - with NAs - robust r PASS 14 0.09
test_ggcorrmat.R ggcorrmat checking ggcorrmat - with NAs - spearman’s rho PASS 11 0.05
test_ggcorrmat.R ggcorrmat checking sample sizes PASS 5 0.02
test_ggcorrmat.R ggcorrmat checking p-values PASS 2 0.00
test_ggcorrmat.R ggcorrmat checking confidence intervals PASS 3 0.01
test_ggcorrmat.R ggcorrmat checking messages PASS 4 0.10
test_ggdotplotstats.R ggdotplotstats ggdotplotstats works as expected PASS 21 0.29
test_ggdotplotstats.R ggdotplotstats ggdotplotstats works with summarized data PASS 8 0.14
test_gghistostats.R gghistostats checking gghistostats plot and parametric stats - data with NAs PASS 22 0.34
test_gghistostats.R gghistostats checking gghistostats and non-parametric stats - data without NAs PASS 27 0.33
test_gghistostats.R gghistostats checking robust stats and proportions PASS 10 0.24
test_gghistostats.R gghistostats checking bayes stats and density PASS 12 0.29
test_gghistostats.R gghistostats checking with default binwidth PASS 5 0.10
test_ggpiestats.R ggpiestats checking one sample proportion test PASS 11 0.12
test_ggpiestats.R ggpiestats checking labels with contingency tab PASS 15 4.19
test_ggpiestats.R ggpiestats checking labels with counts PASS 8 7.58
test_ggpiestats.R ggpiestats checking labels with contingency tab (paired) PASS 1 0.25
test_ggpiestats.R ggpiestats checking if functions work without enough data PASS 2 0.12
test_ggscatterstats.R ggscatterstats checking ggscatterstats - without NAs - pearson’s r PASS 16 0.20
test_ggscatterstats.R ggscatterstats checking ggscatterstats - without NAs - spearman’s rho PASS 1 0.50
test_ggscatterstats.R ggscatterstats checking ggscatterstats - without NAs - percentage bend PASS 3 0.38
test_ggscatterstats.R ggscatterstats checking median display PASS 8 0.17
test_ggscatterstats.R ggscatterstats bayes factor plus class of object PASS 6 0.70
test_ggscatterstats.R ggscatterstats with marginals PASS 1 0.52
test_ggscatterstats.R ggscatterstats class of object PASS 2 0.04
test_ggsignif_position_calculator.R ggsignif_position_calculator y coordinates for ggsignif are accurate PASS 4 0.00
test_grouped_ggbetweenstats.R grouped_ggbetweenstats grouping.var works across vector types PASS 3 2.62
test_grouped_ggcorrmat.R grouped_ggcorrmat grouped_ggcorrmat plots work PASS 4 2.39
test_grouped_ggcorrmat.R grouped_ggcorrmat grouped_ggcorrmat stats work PASS 4 0.10
test_grouped_ggdotplotstats.R grouped_ggdotplotstats grouped_ggdotplotstats works PASS 2 1.98
test_grouped_gghistostats.R grouped_gghistostats grouped_gghistostats works PASS 3 2.64
test_grouped_ggpiestats.R grouped_ggpiestats grouped_ggpiestats works PASS 8 32.89
test_grouped_ggscatterstats.R grouped_ggscatterstats grouped_ggscatterstats works PASS 3 0.89
test_helper_messages.R helper_messages grouped_message is working PASS 1 0.02
test_helper_messages.R helper_messages effsize_ci_message is working PASS 2 0.07
test_helper_messages.R helper_messages ggcorrmat_matrix_message is working PASS 1 0.00
test_helper_messages.R helper_messages palette_message is working PASS 1 0.02
test_helper_messages.R helper_messages normality_message is working PASS 3 0.00
test_helper_messages.R helper_messages bartlett_message is working PASS 4 0.03
test_helpers_bf_tests.R helpers_bf_tests bayes factor plus posterior checks (correlation) PASS 11 0.08
test_helpers_bf_tests.R helpers_bf_tests bayes factor plus posterior checks (paired t-test) PASS 13 0.14
test_helpers_ggbetweenstats.R helpers_ggbetweenstats mean_labeller works PASS 6 0.28
test_histo_labeller.R Helpers gghistostats y coordinate for labeller works PASS 1 0.01
test_histo_labeller.R Helpers gghistostats checking if labeling works PASS 7 0.06
test_kw_eta_h_ci.R test_kw_eta_h_ci Confidence interval for effect size for Kruskal-Wallis test PASS 4 0.91
test_lm_effsize_ci.R lm_effsize_ci lm_effsize_ci works PASS 9 3.14
test_numdf_summary.R numdf_summary checking numdf_summary - with NAs PASS 3 0.01
test_numdf_summary.R numdf_summary checking numdf_summary - without NAs PASS 3 0.02
test_pairwise_ggsignif.R pairwise_p with ggsignif check comparison significant displays - adjusted PASS 2 1.22
test_pairwise_ggsignif.R pairwise_p with ggsignif check non-significant comparison displays - no adjustment PASS 14 1.42
test_pairwise_ggsignif.R pairwise_p with ggsignif check mixed comparison displays - adjusted PASS 18 25.53
test_pairwise_ggsignif.R pairwise_p with ggsignif check robust test display - adjusted PASS 12 2.16
test_pairwise_ggsignif.R pairwise_p with ggsignif check student’s t test display - adjusted PASS 13 0.48
test_pairwise_p.R pairwise_p pairwise_p() works for between-subjects design PASS 4 10.64
test_pairwise_p.R pairwise_p pairwise_p() works for within-subjects design PASS 9 0.23
test_pairwise_p.R pairwise_p pairwise_p() messages are correct for between-subjects PASS 9 12.38
test_pairwise_p.R pairwise_p pairwise_p() messages are correct for within-subjects PASS 7 0.50
test_pairwise_p_caption.R pairwise_p_caption pairwise_p_caption() works PASS 3 0.00
test_robcor_ci.R robcor_ci robcor_ci works PASS 8 0.28
test_subtitle_anova_bayes.R subtitle_anova_bayes subtitle_anova_bayes works PASS 1 5.44
test_subtitle_anova_parametric.R subtitle_anova_parametric parametric anova subtitles work (without NAs) PASS 3 0.03
test_subtitle_anova_parametric.R subtitle_anova_parametric parametric anova subtitles work (with NAs) PASS 1 0.84
test_subtitle_anova_parametric.R subtitle_anova_parametric parametric anova subtitles with partial omega-squared PASS 1 0.11
test_subtitle_anova_parametric.R subtitle_anova_parametric parametric anova subtitles with partial eta-squared and data with NAs PASS 1 0.03
test_subtitle_anova_parametric.R subtitle_anova_parametric parametric anova subtitles with partial eta-squared and data with NAs PASS 2 0.17
test_subtitle_anova_robust.R subtitle_anova_robust subtitle_anova_robust works PASS 4 1.19
test_subtitle_contingency_tab.R subtitle_contingency_tab subtitle_contingency_tab works PASS 1 1.14
test_subtitle_contingency_tab_gof.R subtitle_contingency_tab_gof Goodness of Fit subtitle_contingency_tab works without counts PASS 1 0.03
test_subtitle_contingency_tab_gof.R subtitle_contingency_tab_gof Goodness of Fit subtitle_contingency_tab works with counts PASS 1 0.03
test_subtitle_contingency_tab_gof.R subtitle_contingency_tab_gof works PASS 2 0.05
test_subtitle_contingency_tab_paired.R subtitle_contingency_tab_paired Paired subtitle_contingency_tab works PASS 1 0.06
test_subtitle_friedman_nonparametric.R subtitle_friedman_nonparametric subtitle_friedman_nonparametric works PASS 1 0.05
test_subtitle_ggscatterstats.R subtitle_ggscatterstats subtitle_ggscatterstats works PASS 3 0.54
test_subtitle_kw_nonparametric.R subtitle_kw_nonparametric subtitle_kw_nonparametric works PASS 1 1.54
test_subtitle_mann_nonparametric.R subtitle_mann_nonparametric subtitle_mann_nonparametric works PASS 1 0.18
test_subtitle_mann_paired.R subtitle_mann_paired subtitle_mann_paired works PASS 2 0.07
test_subtitle_t_bayes.R subtitle_t_bayes subtitle_t_bayes works PASS 1 0.14
test_subtitle_t_bayes_paired.R subtitle_t_bayes_paired subtitle_t_bayes_paired works PASS 1 0.17
test_subtitle_t_onesample.R subtitle_t_onesample subtitle_t_onesample parametric works PASS 1 0.38
test_subtitle_t_onesample.R subtitle_t_onesample subtitle_t_onesample non-parametric works PASS 1 0.09
test_subtitle_t_onesample.R subtitle_t_onesample subtitle_t_onesample robust works PASS 1 0.08
test_subtitle_t_onesample.R subtitle_t_onesample subtitle_t_onesample bayes factor works PASS 1 0.14
test_subtitle_t_onesample.R subtitle_t_onesample subtitle_t_onesample works PASS 3 0.24
test_subtitle_t_parametric.R subtitle_t_parametric parametric t-test works (between-subjects without NAs) PASS 1 0.02
test_subtitle_t_parametric.R subtitle_t_parametric parametric t-test works (between-subjects with NAs) PASS 1 0.18
test_subtitle_t_parametric_paired.R subtitle_t_parametric_paired subtitle_t_parametric_paired works (Hedge’s g) PASS 1 0.02
test_subtitle_t_parametric_paired.R subtitle_t_parametric_paired subtitle_t_parametric_paired works (Cohen’s d) PASS 1 0.02
test_subtitle_t_robust_paired.R subtitle_t_robust_paired subtitle_t_robust_paired works PASS 2 2.21
test_switch_statements.R switch statements switch for p adjustment works PASS 4 0.00
test_switch_statements.R switch statements switch for effct size type works PASS 13 0.02
test_t1way_ci.R t1way_ci t1way_ci works PASS 5 4.10
test_theme_ggstatsplot.R theme_ggstatsplot theme_ggstatsplot() works PASS 6 0.05
test_theme_ggstatsplot.R theme_ggstatsplot theme_pie() works PASS 5 0.02
test_yuend_ci_paired.R test_yuend_ci_paired Yuen’s test on trimmed means for dependent samples works PASS 5 0.37

Session Info

Field Value
Version R Under development (unstable) (2018-11-30 r75724)
Platform x86_64-w64-mingw32/x64 (64-bit)
Running Windows >= 8 x64 (build 9200)
Language English_United States
Timezone America/New_York
Package Version
testthat 2.0.1
covr 3.2.1
covrpage 0.0.67