Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara' gem 'database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'launchy'

# require 'spork/ext/ruby-debug' Spork.prefork do # Loading more in this block will cause your tests to run faster. However, # if you change any configuration or code from libraries loaded here...

github.com

...mark needed describes and its as ddiscribe and iit, and next time you run tests only ddiscribes and iits will be executed. In Jasmine version >= 2.0 use fit and fdescribe...

...global user.email email@example.com ^ Install RVM: curl -sSL https://get.rvm.io | bash -s stable ^ source ~/.rvm/scripts/rvm ^ Test RVM installation correctness: type rvm | head -1 #should return something like this: rvm is a...

wiki

...host: localhost encoding: unicode database: proj_development pool: 5 username: proj password: template: template0 test: adapter: postgresql host: localhost encoding: unicode database: proj_test pool: 5 username: proj password:

# you can import addition *.rake files # app.add_import 'some/other/file.rake' rake.load_rakefile rake['db:test:prepare'].invoke...

Best results in other decks

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium WebDriver. This card shows basic techniques for fixing a flaky...

...and seed per process: DISPLAY=:17 bundle exec parallel_cucumber --serialize-stdout --verbose-process-command --test-options '--order random' features/ bin/cucumber --order random --profile parallel features/location/import.feature features/location/export.feature Using the parallel...

A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs, or only when the entire test suite is run.

...are many causes for flaky tests. This card focuses on a specific class of feature with heavy side effects, mostly on on the UI. Features like the following can amplify...

Search in all decks