Created
April 16, 2014 09:42
-
-
Save djdkc86/10842709 to your computer and use it in GitHub Desktop.
How we failed at tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Time -------------------------------------------------------------------------------- | |
Test passed. (+0.2) | |
-------------------------------------------------------------------------------- | |
The following required failures were not detected: | |
- all ratings or checkboxes selected | |
with the following modifications: | |
- results = [G, PG-13] movies | |
| Disabling profiles... | |
| Disabling profiles... | |
| #Authors: Eric Gagnon, Thomas Wassum | |
| #Date: 15 April 2014 | |
| Feature: display list of movies filtered by MPAA rating | |
| | |
| As a concerned parent | |
| So that I can quickly browse movies appropriate for my family | |
| I want to see movies matching only certain MPAA ratings | |
| | |
| Background: movies have been added to database # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:9 | |
| Given the following movies exist: # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:3 | |
| | title | rating | release_date | | |
| | Aladdin | G | 25-Nov-1992 | | |
| | The Terminator | R | 26-Oct-1984 | | |
| | When Harry Met Sally | R | 21-Jul-1989 | | |
| | The Help | PG-13 | 10-Aug-2011 | | |
| | Chocolat | PG-13 | 5-Jan-2001 | | |
| | Amelie | R | 25-Apr-2001 | | |
| | 2001: A Space Odyssey | G | 6-Apr-1968 | | |
| | The Incredibles | PG | 5-Nov-2004 | | |
| | Raiders of the Lost Ark | PG | 12-Jun-1981 | | |
| | Chicken Run | G | 21-Jun-2000 | | |
| And I am on the RottenPotatoes home page # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:44 | |
| | |
| Scenario: restrict to movies with 'PG' or 'R' ratings # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:26 | |
| When I check the following ratings: PG, R # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I uncheck the following ratings: G, PG-13, NC-17 # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I press "Refresh" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:52 | |
| Then I should see "Raiders of the Lost Ark" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:105 | |
| expected there to be content "Raiders of the Lost Ark" in "Rotten Potatoes!\nRotten Potatoes!\n\nAll Movies\n\n\n\nInclude:\nG\n\nPG\n\nPG-13\n\nNC-17\n\nR\n\n\nMovie Title\nRating\nRelease Date\nMore Info\nAladdin\nG\n1992-11-25 00:00:00 UTC\nMore about Aladdin\nThe Help\nPG-13\n2011-08-10 00:00:00 UTC\nMore about The Help\nChocolat\nPG-13\n2001-01-05 00:00:00 UTC\nMore about Chocolat\n2001: A Space Odyssey\nG\n1968-04-06 00:00:00 UTC\nMore about 2001: A Space Odyssey\nChicken Run\nG\n2000-06-21 00:00:00 UTC\nMore about Chicken Run\nAdd new movie\n\n\n" (RSpec::Expectations::ExpectationNotMetError) | |
| /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:107:in `/^(?:|I )should see "([^"]*)"$/' | |
| /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:30:in `Then I should see "Raiders of the Lost Ark"' | |
| And I should see "The Terminator" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:105 | |
| And I should not see "Aladdin" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:123 | |
| And I should not see "Chicken Run" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:123 | |
| | |
| Scenario: all ratings selected # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:35 | |
| When I check the following ratings: G, PG, PG-13, NC-17, R # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I press "Refresh" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:52 | |
| Then I should see all the movies # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:35 | |
| | |
| Failing Scenarios: | |
| cucumber /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:26 # Scenario: restrict to movies with 'PG' or 'R' ratings | |
| | |
| 2 scenarios (1 failed, 1 passed) | |
| 14 steps (1 failed, 3 skipped, 10 passed) | |
| 0m0.753s | |
Test failed. (-0.075) | |
-------------------------------------------------------------------------------- | |
The following required failures were not detected: | |
- all ratings or checkboxes selected | |
with the following modifications: | |
- results = [] | |
| Disabling profiles... | |
| Disabling profiles... | |
| #Authors: Eric Gagnon, Thomas Wassum | |
| #Date: 15 April 2014 | |
| Feature: display list of movies filtered by MPAA rating | |
| | |
| As a concerned parent | |
| So that I can quickly browse movies appropriate for my family | |
| I want to see movies matching only certain MPAA ratings | |
| | |
| Background: movies have been added to database # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:9 | |
| Given the following movies exist: # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:3 | |
| | title | rating | release_date | | |
| | Aladdin | G | 25-Nov-1992 | | |
| | The Terminator | R | 26-Oct-1984 | | |
| | When Harry Met Sally | R | 21-Jul-1989 | | |
| | The Help | PG-13 | 10-Aug-2011 | | |
| | Chocolat | PG-13 | 5-Jan-2001 | | |
| | Amelie | R | 25-Apr-2001 | | |
| | 2001: A Space Odyssey | G | 6-Apr-1968 | | |
| | The Incredibles | PG | 5-Nov-2004 | | |
| | Raiders of the Lost Ark | PG | 12-Jun-1981 | | |
| | Chicken Run | G | 21-Jun-2000 | | |
| And I am on the RottenPotatoes home page # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:44 | |
| | |
| Scenario: restrict to movies with 'PG' or 'R' ratings # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:26 | |
| When I check the following ratings: PG, R # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I uncheck the following ratings: G, PG-13, NC-17 # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I press "Refresh" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:52 | |
| Then I should see "Raiders of the Lost Ark" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:105 | |
| expected there to be content "Raiders of the Lost Ark" in "Rotten Potatoes!\nRotten Potatoes!\n\nAll Movies\n\n\n\nInclude:\nG\n\nPG\n\nPG-13\n\nNC-17\n\nR\n\n\nMovie Title\nRating\nRelease Date\nMore Info\nAdd new movie\n\n\n" (RSpec::Expectations::ExpectationNotMetError) | |
| /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:107:in `/^(?:|I )should see "([^"]*)"$/' | |
| /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:30:in `Then I should see "Raiders of the Lost Ark"' | |
| And I should see "The Terminator" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:105 | |
| And I should not see "Aladdin" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:123 | |
| And I should not see "Chicken Run" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:123 | |
| | |
| Scenario: all ratings selected # /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:35 | |
| When I check the following ratings: G, PG, PG-13, NC-17, R # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:24 | |
| And I press "Refresh" # /tmp/submission20140416-2079-qldqwr/features/step_definitions/web_steps.rb:52 | |
| Then I should see all the movies # /tmp/submission20140416-2079-qldqwr/features/step_definitions/movie_steps.rb:35 | |
| | |
| Failing Scenarios: | |
| cucumber /tmp/submission20140416-2079-qldqwr/features/filter_movie_list.feature:26 # Scenario: restrict to movies with 'PG' or 'R' ratings | |
| | |
| 2 scenarios (1 failed, 1 passed) | |
| 14 steps (1 failed, 3 skipped, 10 passed) | |
| 0m0.709s | |
Test failed. (-0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.25) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.25) | |
Total score: 0.8500000000000001 / 1.0 | |
Completed in 18.851537025 seconds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment