I want to use Scalene to profile my Pytest test suit
Typically I run the test suit by running
pytest
So I tried
scalene pytest
which doesn't work as I expect.
What is the correct way to run my test suit through scalene?
I want to use Scalene to profile my Pytest test suit
Typically I run the test suit by running
pytest
So I tried
scalene pytest
which doesn't work as I expect.
What is the correct way to run my test suit through scalene?
Copyright © 2021 Jogjafile Inc.
Since Scalene replaces your python interpreter, you have to run pytest as a module from Scalene, like so:
which yields the desired result