everypolitician / scraper_test

Data-driven scraper tests for Scraped
0 stars 0 forks source link

Separate "run" for each fixture #4

Open chrismytton opened 7 years ago

chrismytton commented 7 years ago

Problem

At the moment if I have two fixture files in my test directory I see the following output:

Run options: --seed 18010

# Running:

.

Finished in 0.221815s, 4.5083 runs/s, 9.0165 assertions/s.

1 runs, 2 assertions, 0 failures, 0 errors, 0 skips

It would be nice if each fixture file mapped to a "run", so that you can have a . or whatever for each fixture.

Proposed solution

Generate a new it block for each fixture file, rather than running them all in the same block.