di / pytest-reqs

py.test plugin for checking requirements files
https://pypi.org/p/pytest-reqs
MIT License
25 stars 6 forks source link

Load requirements as a file object #24

Open jayvdb opened 6 years ago

jayvdb commented 6 years ago

Instead of having a single entry per requirements file, load it as a file with items for each entry in the file.

This allows errors for each problem, rather than only the first problem with the requirements, and provides an equivalent of pip show when pytest verbosity is increased.

di commented 5 years ago

@jayvdb Can you rebase this?

jayvdb commented 5 years ago

This is somewhere between a WIP and ready to roll. It is definately a large breaking change in the UI / usability.

This mode works well for the pytest default of hiding each test entry which passes, only slightly annoying for projects with extremely large requirement lists.

I would not be opposed to turning this into a 'mode' , so the existing terse mode is still available for people who dont individual test entries for each requirement . I am sure that there are scenarios with other plugins, especially test result printer plugins, where this approach is undesirable.

jayvdb commented 5 years ago

Given the other regressions, I suggest delaying this until after the next release .