Skip to content

Test result cache not invalidated when paths found by test_each_path change #19

@willhansen

Description

@willhansen

Reproduction:

  1. set up test using test_each_path
  2. run cargo test, ensuring the tests pass
  3. change contents of the target test directory to cause test failure
  4. run cargo test again. Tests should fail, but don't

I assume this is because test_each_path is done at runtime while test_each_file is at compile time.

The problem is that I need the filenames for output comparison, while test_each_file only provides the file contents.

Is there a way to get the file path with test_each_file, or otherwise flag the directory for cargo?

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