#13 Create integration test that covers the countme-totals.py
Closed 3 years ago by patrikp. Opened 3 years ago by asaleh.

There are many possible points of failure, so we need to have a test that covers all of it, including the shell-scripts.

The file to be tested is i https://pagure.io/mirrors-countme/blob/main/f/countme-totals.py
There might be some refactoring to be able to execute the equivalent of main() from within the test.

You should be able to use https://pagure.io/mirrors-countme/blob/main/f/test_data/test_result_cmp.tar.xz as the COUNTME_RAW_DB argument.

The test should be data-driven, so that we can easily add reproducers.

You can use the other integration test that focuses on the parsing as a template: https://pagure.io/mirrors-countme/blob/main/f/tests/test_parse.py


Metadata Update from @asaleh:
- Issue tagged with: Backlog, DNFCounting

3 years ago

Metadata Update from @patrikp:
- Issue assigned to patrikp

3 years ago

PR: #51

Issue status updated to: Closed (was: Open)

3 years ago

Log in to comment on this ticket.

Metadata
Boards 1