Live data from Hacker News

Announcing cucumber-electron

cucumber.io

1–10 of 31 posts

Re: Announcing cucumber-electron

#2
This sounds very interesting. I have been using cucumber in my development with Selenium WebDriver (cucumber-rails) and the author here has promised things that were missing in PhantomJS and Capybara-WebKit that drove me toward using Selenium and Chrome instead. Namely the option of running in either Headed mode with the inspector available, or Headless.

Does this project require your system-under-test to be a pure Node.Js application to work with it? (I am not sure if I had heard of electron, but it looks to be the case.) Is there any possibility of porting this to be a driver for test systems that use Cucumber for systems built in other languages?

Re: Announcing cucumber-electron

#4
Since you work for cucumber, a pro tip: put a summary of what the project is right up front on the Web page, assuming visitors know nothing.

What is cucumber? What is Electron?

For example: "cucumber-electron is a Javascript module (available via npm) that combines cucumber, a framework for writing Web page tests in plain language, with Electron, a framework for building desktop apps using Web technologies. ..."

Re: Announcing cucumber-electron

#5
post #3

The title is slightly misleading. This just looks like an alternative way to run Cucumber, not a complete alternative to Selenium.

It didn't even occur to me that there were other ways of using Selenium than Selenium-WebDriver!

Re: Announcing cucumber-electron

#7

whats the best headless browser for CI/CD? I've always used Phantom, but would be keen to explore alternatives (especially if it could quiet the "nobody uses phantom in real life")

I write tests using chromedriver. Ends up being really simple to write, and if I want to debug something, it's just a chrome instance that I can use normally if I make the tests wait.

Only downside is you have to make it run with xvfb on the CI server, but that's pretty easy to set up in your config file usually.

Re: Announcing cucumber-electron

#8

whats the best headless browser for CI/CD? I've always used Phantom, but would be keen to explore alternatives (especially if it could quiet the "nobody uses phantom in real life")

I write tests using chromedriver. Ends up being really simple to write, and if I want to debug something, it's just a chrome instance that I can use normally if I make the tests wait. Only downside is you have to make it run with xvfb on the CI server, but that's pretty easy to set up in your config file usually.

Is headless Chrome working yet?

https://chromium.googlesource.com/chromium/src/+/lkgr/headle...

Re: Announcing cucumber-electron

#9

whats the best headless browser for CI/CD? I've always used Phantom, but would be keen to explore alternatives (especially if it could quiet the "nobody uses phantom in real life")

While not actually a real-life browser, Phantom 2.5 is _much_ closer to a real-life browser engine than it was previously.

Re: Announcing cucumber-electron

#10
post #5
post #3

The title is slightly misleading. This just looks like an alternative way to run Cucumber, not a complete alternative to Selenium.

It didn't even occur to me that there were other ways of using Selenium than Selenium-WebDriver!

Well a key property of Selenium is that it's cross-browser. Whilst it's nice to imagine that the web is in a position where running all your tests in some version of Blink means that your site will work on Firefox/Edge/Safari, I fear that the reality is still rather different.
Post reply on HN