NeuroML / pyNeuroML

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.
https://docs.neuroml.org/Userdocs/Software/pyNeuroML.html
GNU Lesser General Public License v3.0
36 stars 30 forks source link

Speed up unit tests #388

Closed sanjayankur31 closed 3 months ago

sanjayankur31 commented 3 months ago

The unit test are taking 20 min at the mo. I'll see how this can be sped up. I see tests where I'm loading files again and again instead of doing it once in a setup method. I can also tweak some of the plotting tests to reduce the amount of processing they're doing to speed things up.

sanjayankur31 commented 3 months ago

I've tweaked some of the more intensive tests, and I've added pytest-xdist to parallelise the pytest run. Seem to help some. We'll keep making more tweaks as we go.