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...

...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...

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...

Best results in other decks

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...

A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you to miss errors in your frontend code. Using the BrowserConsole...

...helper below you can check your browser's error console from your E2E tests. The following will raise BrowserConsole::ErrorsPresent if there is an error on the browser console: BrowserConsole.assert...

Search in all decks