pytest-spec
pytest-spec copied to clipboard
[WIP] Add cache to store information about test template
Issue: #11 Work plan:
- [x] Add some cache to read template only once per file
- [x] Add logic to read template format for test file
- [x] Add support for pytest parameters via template
I was able to create something that works. I have to clean and organize code.
@OddState, @tknerr could try this branch? Spec format can be specified in first 100 lines of the file. Format should be like below:
SPEC_TEST_FORMAT = '[{result}] {name} {p0}'
where p0 is first parameter. You can add more if you like. I created one example in test/test_params.py file.
@pchomik thanks! 👍
Let me see if I can give it a try today. Will let you know if it worked here.