Closed ma-sadeghi closed 2 years ago
It's not pytest-split, it's the test collection which is slow in that project 🙂 I assume there are some super heavy fixtures or such?
The problem with porespy
project is that it runs all the integration tests during collection as those are not wrapped into functions (i.e. those are not tests but scripts which run when the module is loaded). This is evident if you run e.g. pytest test/integration
🙂
Thank you so much for your super helpful reply! I just wrapped them in a few functions, and sure enough, the test collection is almost instant!
I just noticed that the splitting part takes too long (~1 min for my case). Is this expected? To reproduce, clone porespy,
cd
toporespy
folder, and run the following command: