New package to load test parameters from files: parametrize_from_file #8097
Replies: 1 comment
-
Heya, just seen this, I've actually just implemented something a little similar: https://github.com/chrisjsewell/pytest-param-files Since I wanted to centralise what I was already doing in e.g. So it's a little similar, but a few nice "extras" I have include; pointing to the line in the file on failures, and Happy to move to using your package though, if it could support the same features |
Beta Was this translation helpful? Give feedback.
-
@pytest.mark.parametrize
is very useful, but there are a few things that bug me about it:To address these issues, I wrote a package called
parametrize_from_file
. Like the name implies, this package makes it easy to load test parameters from JSON/YAML/TOML/NestedText files. This approach has several advantages:I've been using this package myself for a while, but I just finished cleaning it up for public consumption. Let me know if it sounds useful! Any comments or feedback would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions