Skip to content

Wolox/selenium-bootstrap-ruby

Repository files navigation

First steps

  • Install ruby : sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev && gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB && curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm rvm install 2.5.3 rvm use 2.5.3 --default
  • Add in config profile file ( .zshrc, .bashrc), export PATH="$PATH:$HOME/.rvm/bin" and source ~/.rvm/scripts/rvm.
  • Move to project root and run gem install bundler.

To run the project, follow these steps:

  • Clone this repository
  • Move to project root and run bundle install
  • Run bundle exec cucumber

Generals

  • In the folder features/step_definitions create files who define steps for each feature.
  • In file env.rb define environment vars.
  • In file hooks.rb define actions after/before each feature/scenario/tag.
  • In file helpers.rb create modules and methods that you think can be used for many steps/features.
  • Create files .feature in folder features and use descriptive names.
  • Run rubocop with bundle exec rubocop features

Documentation

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published