pytest-spec icon indicating copy to clipboard operation
pytest-spec copied to clipboard

[WIP] Add cache to store information about test template

Open pchomik opened this issue 7 years ago • 3 comments

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

pchomik avatar Mar 08 '17 20:03 pchomik

I was able to create something that works. I have to clean and organize code.

pchomik avatar Mar 21 '17 21:03 pchomik

@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 avatar Apr 09 '17 20:04 pchomik

@pchomik thanks! 👍

Let me see if I can give it a try today. Will let you know if it worked here.

tknerr avatar Apr 11 '17 06:04 tknerr