Why not?
Adding the module
Since this is support code, put this in the support folder.
Adding the module
Since this is support code, put this in the support folder.
features/support/your_project.rb
Usage
You can now use it like this from anywhere in your test - YourProject::notify_slack("message"). I use it to post info about things that the test is doing, finding, or creating that may be of use for other testing going on, or for manual inspection.
You can also have reporting going live as scenarios are finished using this hook.
You can now use it like this from anywhere in your test - YourProject::notify_slack("message"). I use it to post info about things that the test is doing, finding, or creating that may be of use for other testing going on, or for manual inspection.
You can also have reporting going live as scenarios are finished using this hook.
features/support/hooks.rb