Your gift card tests failed on main for reasons you could name, and the last exercise checked them on an extract of the shop. Two steps of the project are left. You run the tests against Quill’s branch, and then you tell Grace what you found.
In this capstone review, you’ll turn heading 5 of your project entry into a report that Grace could act on, and then talk Edsger through it. He wrote most of the shop’s tests, so he’ll ask what each claim rests on, which tests the change edited, and what your own tests don’t check. He’ll also describe a case you haven’t tried yet. Start with what the report needs to say.
Write the Report From Your Map
The report has two readers. Grace isn’t a developer, and she needs to know whether customers can use gift cards the way she asked. The next person to touch src/payments/ needs the evidence behind each claim. One page can serve both if every claim is a plain sentence with its evidence after it.
Write the report under heading 5 of map.md, the map you started in Finding Your Way Around a Codebase You Didn’t Write, in this order. Give the verdict in one sentence and each remaining part in a short paragraph or a list:
- Your verdict: Whether pull #31 is ready, and what it needs first if it isn’t
- The intent: As you wrote it before you opened the branch, with Grace’s answers next to your questions
- The test changes: From
git diff main..quill/gift-cards -- test/, with each edited test judged against the intent - The criteria: Each one met, missed, or needing Grace’s decision, with the test that checks it and what the test reported. For a criterion that needs her decision, write the result you saw and the question it raises next to it
- Not checked: Buying a card, and every changed file that none of your tests reaches
Most of it is already in your map. Here’s one criterion from part 4, written for both readers:
Criterion 2: a card pays all of an order it covers, and keeps the rest.
Given GIFT-1000 at 1000p, when one Small Maps (750p) is ordered with it,
then 0p goes on the ordinary card, 750p comes off the card, and the
balance is 250p. Test 2 in test/gift-criteria.test.js asserts all three.
It failed on main (expected 0, actual 750) and passes on quill/gift-cards.
The paragraph keeps the criterion apart from the evidence. The given/when/then sentence expresses your reading of Grace’s request, in pence. The last two sentences report what you ran and what it showed. Write every criterion the same way, whether the branch meets it or not.