t increase coverage

This commit is contained in:
Koleh David 2025-02-06 14:48:05 +10:30
parent 76d9fc4386
commit 787cb22667
3 changed files with 8 additions and 2 deletions

View File

@ -7,3 +7,6 @@ args: ('Aged Brie', 1) => 'Aged Brie, -1, 3'
args: ('Backstage passes to a TAFKAL80ETC concert', -1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
args: ('Backstage passes to a TAFKAL80ETC concert', 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
args: ('Backstage passes to a TAFKAL80ETC concert', 1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
args: ('Sulfuras, Hand of Ragnaros', -1) => 'Sulfuras, Hand of Ragnaros, 0, -1'
args: ('Sulfuras, Hand of Ragnaros', 0) => 'Sulfuras, Hand of Ragnaros, 0, 0'
args: ('Sulfuras, Hand of Ragnaros', 1) => 'Sulfuras, Hand of Ragnaros, 0, 1'

View File

@ -13,11 +13,13 @@ pip install -r requirements.txt
# Running the tests
This project uses approval tests to ensure the behavior of the code remains the same during refactoring
This project uses [characterisation tests](TODO: Link to characterisation/approval tests concept) to ensure the behavior of the code remains the same during refactoring.
```bash
coverage run --branch -m pytest --approvaltests-add-reporter=diffuse -s ; coverage html ; coverage report --fail-under=100
coverage run --branch -m pytest --approvaltests-add-reporter=diffuse -s ;
coverage html ;
coverage report --fail-under=100
```
This will run the tests, and will also:

View File

@ -16,6 +16,7 @@ class GildedRoseTest(unittest.TestCase):
"foo",
"Aged Brie",
"Backstage passes to a TAFKAL80ETC concert",
"Sulfuras, Hand of Ragnaros",
]
verify_all_combinations(self.do_stuff, [input_names, [-1, 0, 1]])