You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
There is a way how to modify the array of transactions in a beforeAll hook. An example how to duplicate the first transaction and how to add it at the end of the transactions array:
Again, Dredd is primarily a tool designed to perform isolated tests. We may support integration scenarios or workflows in the future and we would love to hear about what approach you think would be the most useful to you (tracking issue: #358), but as of now, Dredd isn't ready to help you with more complicated flows.
The text was updated successfully, but these errors were encountered:
Disclaimer
Dredd is primarily a tool designed to perform isolated tests and hooks are here to help you to isolate each test. If you need to modify the transactions array, it's a sign you're not creating isolated tests. YMMV if that's good or bad.
Workaround using Dredd hooks
There is a way how to modify the array of transactions in a
beforeAll
hook. An example how to duplicate the first transaction and how to add it at the end of the transactions array:Flaws
Will this work in other languages than JS?
Use cases
The workaround allows you to solve following problems:
Why this is a workaround
Again, Dredd is primarily a tool designed to perform isolated tests. We may support integration scenarios or workflows in the future and we would love to hear about what approach you think would be the most useful to you (tracking issue: #358), but as of now, Dredd isn't ready to help you with more complicated flows.
The text was updated successfully, but these errors were encountered: