tests/README.md

Tests and Coverage

05 October, 2018 14:00:44

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

| Object | Coverage (%) | |:----------------------------------------------------------|:------------:| | rfm | 58.63 | | R/rfm-launch-shiny-app.R | 0.00 | | R/rfm-plots.R | 0.00 | | R/rfm-segment.R | 22.22 | | R/rfm-plots-data.R | 48.39 | | R/rfm-table-customer.R | 93.85 | | R/rfm-table-customer-2.R | 94.12 | | R/rfm-table-transaction.R | 95.00 | | R/utils.R | 100.00 |

Unit Tests

Unit Test summary is created using the testthat package.

| | file | n| time| error| failed| skipped| warning| |------------------|:----------------------------------------------|----:|-----:|------:|-------:|--------:|--------:| | test-rfm-plots.R | test-rfm-plots.R | 7| 0.02| 0| 0| 7| 0| | test-rfm-table.R | test-rfm-table.R | 3| 0.41| 0| 0| 0| 0| | test-utils.R | test-utils.R | 6| 0.52| 0| 0| 0| 0|

Show Detailed Test Results

| file | context | test | status | n| time| |:--------------------------------------------------|:-----------------|:---------------------------------------------------|:--------|----:|-----:| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_bar_chart is as expected | SKIPPED | 1| 0.00| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_rf_plot is as expected | SKIPPED | 1| 0.00| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_rm_plot is as expected | SKIPPED | 1| 0.02| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_fm_plot is as expected | SKIPPED | 1| 0.00| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_heatmap is as expected | SKIPPED | 1| 0.00| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_histograms is as expected | SKIPPED | 1| 0.00| | test-rfm-plots.R | test-rfm-plots.R | output from rfm_order_dist is as expected | SKIPPED | 1| 0.00| | test-rfm-table.R | rfm_table | output from rfm_table_order is as expected | PASS | 1| 0.11| | test-rfm-table.R | rfm_table | output from rfm_table_customer is as expected | PASS | 1| 0.13| | test-rfm-table.R | rfm_table | output from rfm_table_customer_2 is as expected | PASS | 1| 0.17| | test-utils.R | test-utils.R | output from bins is as expected | PASS | 1| 0.00| | test-utils.R | test-utils.R | output from bins_lower is as expected | PASS | 1| 0.02| | test-utils.R | test-utils.R | output from bins_upper is as expected | PASS | 1| 0.01| | test-utils.R | test-utils.R | output from rfm_heatmap_data is as expected | PASS | 1| 0.14| | test-utils.R | test-utils.R | output from check_levels is as expected | PASS | 1| 0.16| | test-utils.R | test-utils.R | output from modify_rfm is as expected | PASS | 1| 0.19|

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.0 | | covr | 3.2.0 | | covrpage | 0.0.59 |



Try the rfm package in your browser

Any scripts or data that you put into this service are public.

rfm documentation built on May 29, 2024, 11:50 a.m.