Skip to content

Feature request: Run a single named test within a file #1776

Closed
@dvg-p4

Description

@dvg-p4

Currently, the smallest unit of tests that can be run with this package is a file, with testthat::test_file(). However, for our use case each testing file (we've already split up into about 10 of them) takes 5-10 minutes to run, so the dev loop for tests at the end of a file is painfully slow. Therefore I propose something like testthat::test_single(file, test_name) to run a single named test within a file, skipping over all tests whose names do not match test_name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions