greschd / pytest-score

Pytest plugin for quantitative quality tests.
Apache License 2.0
1 stars 0 forks source link

Documentation on basic usage #1

Open JarnoRFB opened 5 years ago

JarnoRFB commented 5 years ago

Hey, thanks for making this open source! I have been looking for something like this. However, form the tests/readme I cannot really get how the library is supposed to be used. Maybe you could add a small section, describing how the usage in a pytest would look like.

greschd commented 5 years ago

Fair warning: I wouldn't really recommend using this yet -- I basically coded enough to fix a need I had in another project, and no more.

That being said, if you want to use it before I get around to properly documenting it: The "score" fixture (https://github.com/greschd/pytest-score/blob/master/pytest_score/_fixtures.py#L71) is what you want to use in your tests. It's a function which takes a numeric value (the score), and optionally you can set

So, plenty to improve, but it'll do the basic job. More of a proof of concept than a finished plugin though.

greschd commented 5 years ago

I'll keep the issue open to remind me to add some documentation when (if?) I get around to polishing this.