Skip to content

Support setting filter= by an environment variable #2280

@MichaelChirico

Description

@MichaelChirico

It would be nice if there was a standard environment variable that could be set and interpeted by test_dir(filter=) to facilitate filtering tests run at more scale, e.g. across many packages to run with TESTTHAT_TEST_FILTER=plot to run all tests in files like 'test.*plot.*' across a repo of packages.

Context: I'm trying to implement --test_filter for R in bazel:

https://bazel.build/docs/user-manual#test-filter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions