Skip to contents

Remove test data after tests based on .Renviron settings. Use to clean up test artifacts and directories after validation.

Usage

test_teardown(settings)

Arguments

settings

list. Settings object for test environment.

Value

None. Removes directories as side effect.

Details

  • Reads TEARDOWN_TEST_DATA environment variable for directories to remove.

  • Supports wildcard and comma-separated lists; removes recursively.

  • Returns nothing; side effect is file system cleanup.

  • Assumes valid settings and environment; errors if missing.

Settings

None.

See also

  • scripts/tests/test_teardown.R

Other test utilities: get_test_settings(), test_results()

Examples

## Not run:
test_teardown(settings)
#> NULL
## End(Not run)