pytest-dev / pytest-splinter

pytest splinter and selenium integration for anyone interested in browser interaction in tests
MIT License
254 stars 51 forks source link

Long initialization time #27

Closed santagada closed 9 years ago

santagada commented 9 years ago

For even one simple test pytest-splinter takes up to 40 seconds. I don't remember this being the case, it only took something like 10 seconds to start the driver before. Is anyone else seeing this?

bubenkoff commented 9 years ago

can you please make 2 tests with or without pytest-splinter to compare the times?

santagada commented 9 years ago

I saw that it was actually happening because I have pytest-bdd installed, even if not using it apparently. I will reopen it on pytest-bdd when I have the time.

bubenkoff commented 9 years ago

pytest-bdd parses all the feature files on import time, once if you have them a lot then it's logical but im sure there's a room for optimisation

On 19 May 2015 at 04:33, Leonardo Santagada notifications@github.com wrote:

I saw that it was actually happening because I have pytest-bdd installed, even if not using it apparently. I will reopen it on pytest-bdd when I have the time.

— Reply to this email directly or view it on GitHub https://github.com/pytest-dev/pytest-splinter/issues/27#issuecomment-103306472 .

Anatoly Bubenkov