dredd: CLI `--only` doesn't skip hooks for other transactions
I am trying to run a single transaction since running the entire suite can be time consuming. I tried using the --only cli flag but that runs each transaction as if each one was skipped, which takes just as much time as running them. Is there a way to accomplish what I am looking for? If not would a contribution that does what I am looking for be accepted?
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 16 (12 by maintainers)
I have no plans to work on this so feel free to pick it up
@ddelnano is there a plan to get this working or is this open for anyone to pick up the bat?
haha
@netmilk yea all of that sounds good to me. I’ll have time this weekend to start digging into it.
@ddelnano @honzajavorek This is caused by how the skipping works internally. It just skips the actual HTTP call and it’s validation - it’s more like a dry-run then actual skip. I’m not sure if we should not call the hooks for skipped transactions at all because you may want to un-skip the programmatically in hooks.
I’d vote to change the implementation of --only and filter the transactions before it’s passed to the
transactinoRunnerand not to change the actual implementation oftransactionRunnner