pytest-dev / pytest-stress

A Pytest plugin that allows you to loop tests for a user defined amount of time.
MIT License
41 stars 9 forks source link

Use case? #5

Closed MartinThoma closed 4 years ago

MartinThoma commented 4 years ago

I'm sorry, I don't understand why one would want to use this plugin. Could you please explain me which problem it solves?

ImXron commented 4 years ago

Hi Martin,

This plugin allows users to run their test suite in a loop for a given amount of time. This is a common use case for testing (stress testing) hardware during the manufacturing process (just one example).

MartinThoma commented 4 years ago

Thank you for your reply!

This is a common use case for testing hardware during the manufacturing process

Which manufacturing process do you mean?

Is pytest-stress related to pytest-benchmark

ImXron commented 4 years ago

No problem!

Which manufacturing process do you mean?

For example, if a factory were manufacturing some kind of computer or smart device and they needed to perform tests on these devices for 24 hours (to make sure they work before shipping them). They could use pytest and this plugin to run a test suite in a loop for 24 hours.

Is pytest-stress related to pytest-benchmark?

I just looked at pytest-benchmark, and it looks like that's more for benchmarking code. So I wouldn't say they're related.

MartinThoma commented 4 years ago

Cool, thank you for your help. I think I understood it :-)