Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 2027 illustration #2028

Closed
wants to merge 3 commits into from
Closed

PR 2027 illustration #2028

wants to merge 3 commits into from

Conversation

chrisroos
Copy link
Contributor

This is purely for the purposes of illustration and shouldn't be merged.

I didn't do a very good job of explaining how we could use the regression tests to test the effect of a change and thought this worked example might help.

chrisroos and others added 3 commits October 21, 2015 12:17
In preparation for making an Afghanistan specific change to this Smart Answer.

1. Added "afghanistan" as a response to "which_country_are_you_in?" in overseas-passports-questions-and-responses.yml.

2. Regenerated overseas-passports-responses-and-expected-results.yml with:

    $ rails r script/generate-responses-and-expected-results-for-smart-answer.rb\
    overseas-passports

3. Regenerated overseas-passports-files.yml with:

    $ rails r script/generate-checksums-for-smart-answer.rb overseas-passports

4. Updated overseas-passports test artefacts with:

    $ RUN_REGRESSION_TESTS=overseas-passports \
    ruby test/regression/smart_answers_regression_test.rb
… in Afghanistan.

For further details see:
  https://www.pivotaltracker.com/n/projects/1270592/stories/105008654

1. Updated overseas-passports-files.yaml:

    $ rails r script/generate-checksums-for-smart-answer.rb overseas-passports

2. Updated regression test artefacts for overseas-passports:

    $ RUN_REGRESSION_TESTS=overseas-passports \
    ruby test/regression/smart_answers_regression_test.rb
These have served their purpose in allowing us to see the effect of the change
made in the previous commit.

This is essentially a manual revert of the steps in the commit titled "Add
Afghanistan to overseas-passports regression tests".
@chrisroos
Copy link
Contributor Author

I'm closing this as we don't need it open for it to serve its purpose.

@chrisroos chrisroos closed this Oct 21, 2015
@chrisroos chrisroos deleted the pr-2027-illustration branch November 5, 2015 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants