pytest-mypy-plugins icon indicating copy to clipboard operation
pytest-mypy-plugins copied to clipboard

Introduce a test case schema

Open kornicameister opened this issue 5 years ago • 2 comments

Here's what I have in mind. What about creating a @dataclass or NamedTuple or ish that will describe using a model what is a test case? This should make it easier to maintain a code IMHO.

A suggestion, if you are interested :)

kornicameister avatar Jul 14 '20 20:07 kornicameister

Can you please share an example?

sobolevn avatar Jul 14 '20 21:07 sobolevn

An example could be something like:

class TestCase:
   name: str
   main: str
   out: Optional[str]
   ...

we could load into such a model and perhaps develop, using Github Actions, a solution to introspect members and generate such a table each time model changes :)

It is more or less really fancy idea :)

kornicameister avatar Jul 15 '20 17:07 kornicameister