I solved this in the end in another way - https://gerrit.wikimedia.org/r/120938
But basically I put some basic code in hooks.rb which did a puts but nothing was happening. I remember little about that now as I gave up trying...
On Thu, Mar 27, 2014 at 8:09 AM, Željko Filipin zfilipin@wikimedia.org wrote:
On Thu, Mar 20, 2014 at 7:11 PM, Jon Robson jrobson@wikimedia.org wrote:
So ideally I would include the tag @watchstar-setup in the 2 watchlist tests. They would then run API requests to ensure the page is watched (or run browser steps - is it possible to do that from in here)
I am not sure what you are asking. Can you make a commit and push it to gerrit?
I had a play around with this though and I can't get the hooks to run a basic puts statement - am I missing something? Do I need to require the hooks.rb file somewhere?
If you run cucumber with -v[1] it should output all files that are loaded. Example:
$ bundle exec cucumber -v Code:
- features/support/env.rb
- features/support/hooks.rb
(...)
Looks like hooks.rb is loaded. Can you make a commit and push it to gerrit?
Željko
1: -v, --verbose Show the files and features loaded.
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l