thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Provide "Disable inherit" for headers and tests for requests contained in Collections #1431

Open shawnpyle opened 9 months ago

shawnpyle commented 9 months ago

Please describe feature/problem details and the solution you'd like. Auth settings on a request within a collection can Disable inherit. I would love to see the same functionality for headers and tests.

image

It is often the case that we create default headers & tests on collections but want to override them in the collection. An example is that we often create JSON APIs but will have CSV requests interspersed. We'd like to have the collection have a set of JSON-related tests. However, they aren't able to be overridden when CSV responses are received.

image

Describe alternatives you've considered

  1. Put requests in a separate collection but other desired inherited features are not available.

Are you using the free version/paid version/trial: Paid!

Thanks for considering.

rangav commented 9 months ago

Thanks @shawnpyle for the feedback, Will review it.

Alternative Solution: You can use script based Tests with conditional logic.