my Django tests run very slowly, but this is not a test error.
Currently, the whole process takes 14 seconds, but only 0.1 of them run tests. The first few seconds create tables and indexes, the rest apply a lot of fixtures project.
What is the best way to handle this? I think there is a way to indicate which fixtures to load in each test, but I need most of them to do most of the tests ...
The solution that I think will work is if the tests did not drop the tables after each run, so there would be no need to create and populate a database every test run. Most tests are not even written to the database.
What is the best way to optimize the fixture loading part of Django tests? Thanks!
(I use nose , but otherwise just Django and sqlite )
EDIT: I should have mentioned that I use the sqlite database in memory. What I'm looking for - in particular - is the optimization of the test transceiver download section.
performance python django testing fixtures
0atman
source share