parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
720 stars 131 forks source link

Support `mix vcr.check --include mytag` ? #171

Open asmodehn opened 3 years ago

asmodehn commented 3 years ago

mix vcr.check runs the mix test task to verify which cassette are used in tests, and from the documentation, we can pass the test filename. However it seems the filters are not supported.

In my setup I have an alias excluding some tests from the default mix test task, so I can run them explicitly when passing cli arguments for filters, with mix test --include integration for instance. So currently mix vcr.check cannot check cassette usage for part of my tests.

I would naively expect mix vcr.check --include integration to run tests marked with the :integration tag

@tag :integration
test "my test" do
  # smthg dependent on real world things
end

Just like mix test --include integration does.

Same goes for --exclude --only... Or maybe there is another way to go about this ?