Tuesday, April 26, 2011

HTML Output With Cucumber

There are times when you want your Cucumber test results available to your team at all times.  To always generate html output by default, simply edit lib/tasks/cucumber.rake to look like this:



You can output to whatever file you would like. We tend to give the team or customers a custom URL that renders that html. On some internal apps, we simply symlink to that file in the public folder when deploying. Either way, you have a pretty friendly way of showing the condition of your cucumber tests. Let me know what you think.