Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How setup selenium firefox tests on CodeShip?

Intro Hi, I'm developing rails application, which use capybara, selenium-webdriver and rspec for tests.

Problem Now I have a functional tests, which runs in firefox (default selenium browser) and works with redirects to other hosts. For example, rspec before hook to get fresh google access token.

Locally on my laptop all tests runs with success:

bundle exec rspec

But codeship's builds fails.

Questions

Do I need to setup codeship to support "firefox" tests? If yes, how can I do it?

Does codeship supports redirects to other hosts?

Thanks!

like image 399
bmalets Avatar asked Dec 11 '25 13:12

bmalets


1 Answers

Codeship supports running selenium tests in the CI , you can find more info here https://documentation.codeship.com/continuous-integration/browser-testing/

However when i tried to run the selenium tests in CI , chrome failed to start 90% of the times , so i am planning to spin up a selenium grid elsewhere and run the tests in codeship

like image 161
sri85 Avatar answered Dec 14 '25 08:12

sri85



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!