Closed dereke closed 13 years ago
Very cool. I'm traveling for a week so I can't dig into this, so let me know if you get the tests running. I'll check it out later. Thanks for the work!
pulled it in. I had to manually merge because it conflicted with @clemensp's work. Please take a look at master and make sure it's what you intended.
Thanks for the work! -Nick
Hi, I have made a couple of major changes.
1) Better cucumber integration using Cucumber::Cli::Main to kick of cucumber rather than poking around with the internal classes. 2) Customising cucumber by passing through an options element in the hash to enable running cucumber with specific arguments like -f html 3) Pretty html output by writing html output of each feature and then combining them into a single file at the end
To get the html output working you need to supply the -f html parameter to cucumber and also add a listener like so:
Hydra::TestTask.new(:default) do |t| t.listeners << Hydra::Listener::CucumberHtmlReport.new t.options = '-f html' t.addfiles 'features/*/_.feature' end
I've not been able to get therubyracer to install yet so haven't been able to run the tests on this yet. Once I get them working I would like to refactor the runner and pull out the cucumber specifics (and javascript etc.) into its own class.
Hope this is ok