mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-05 01:32:14 +00:00
t increase coverage
This commit is contained in:
parent
76d9fc4386
commit
787cb22667
@ -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'
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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]])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user