This directory contains comprehensive unit tests for the disparity_resample() function using the testthat framework.
testthat.RMain test runner file that sets up the testing environment.
test-disparity_resample.R - Main comprehensive test suiteEdge cases and error conditions
test-disparity_resample_helpers.R - Internal function tests
muvar(), meanpairwiseEuclideanD()Sample size resolution tests
test-disparity_resample_methods.R - S3 method tests
print.disparity_resample() method testsplot.disparity_resample() method testsConfidence interval overlap assessment tests
test-disparity_resample_integration.R - Integration and edge case tests
The test suite covers:
To run all tests:
library(testthat)
library(GeometricMorphometricsMix)
test_check("GeometricMorphometricsMix")
To run specific test files:
test_file("tests/testthat/test-disparity_resample.R")
The tests require: - testthat (>= 3.0.0) - Core testing framework - GeometricMorphometricsMix - The package being tested
Optional packages (tests will skip if not available): - MASS - For multivariate normal data generation - geometry - For convex hull volume tests - nlshrink - For Claramunt proper variance tests - Morpho - For 3D array handling tests - ggplot2 - For plot method tests
skip_if_not_installed() to gracefully handle missing optional packagesskip_on_cran() to avoid CI timeoutsTotal test count: ~100+ individual test cases across 4 test files
Coverage: All major functions and edge cases of disparity_resample()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.