Cloud9 Vating / Selenium Testing

I created Cloud9 and Codeship for a simple continuous integration and delivery system. It works well for my site / app development. Has anyone been able to develop and run browser based cucumber based tests in the Cloud9 IDE? If so, what setting did it require?

PS. I am trying to install a Watir / Selenium chrome reducer and work with a "headless" gem.

+3


source to share


1 answer


First, an explanation. It was very easy for me to set up github, c9.io and the CI and CD code using Cucumber for acceptance testing on Codeship. Unfortunately, developing cucumber tests was difficult because I had to commit, push, and validate failed integration tests against code. I wanted to be able to quickly run and debug Cucumber scripts in the IDE. But there is no browser to view watir / selenium. So the question is.

After a day of searching and tweeting c9.io, I wrote down the solution to two steps ...



  • Install firefox and xvfb: sudo apt-get install firefox xvfb
  • Run cucumber in xvfb context: xvfb-run oucumber
+6


source







All Articles