...und Nachteile von integration tests? Wann bringt man was zum Einsatz? Lerne Tests mit RSpec zu schreiben Verstehe welche Nachteile entstehen wenn man zu viel testet Tests schreiben kostet Zeit...
...sind weitere Tests nicht mehr so nützlich (teilw. Überschneidung von Tests) Lerne wie du RSpec einsetzt um deine Scripts zu testen Inhalte Writing basic tests with Rspec Rspec Dokumentation
Best results in other decks
There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define RSpec::Matchers.define :be_a_multiple_of do |expected| match do |actual...
...when the code is loaded. We have a note on where to put custom RSpec matchers. The shown approach can also be used to compose a custom matcher from existing...
...Remove default rules BrowserConsole.ignore_nothing # Add your own rules BrowserConsole.ignore(...) BrowserConsole.ignore(...) Automatic checking in RSpec feature specs In your spec_helper.rb you may configure to automatically check for errors after every...
...A compromise might be to only check the console when the spec has ended: RSpec.configure do |config| config.after do BrowserConsole.assert_no_errors! end end Ignoring JavaScript errors for a spec...