Dredd does support new hooks? It's time to extend the Ruby DSL!
In order to enable your new hook:
- Determine if the hook is specific to a transaction or applies to all of them
- Add the registration and run method to the runner spec
- Add the DSL method to the DSL spec
- Add the usage example to the Execution order feature
- Run the entire test suite and watch the tests fail (start worrying if they don't!)
- Add the hook name to the corresponding list in the definitions file
- Add the corresponding Dredd event to the events definition (be careful, the hooks order does matter!)
- Run the test suite and watch it pass : )
Finally, bump the minor version number, update the README
, the CHANGELOG
and do anything you need to do in order to release!