Any way to speed up Velocity unit tests?


#1

I’m getting to the point of my Velocity Jasmine unit tests taking around 4.5 seconds to complete (from hitting save to getting notified in HTML reporter). It’s making unit testing React views untenable.

I’m using React which is using reactjs:react to transpile the jsx, could that be an issue?

I only have about 5 unit tests and around 70 integration tests. Integration test take about 10 seconds to finish which I totally fine with since they’re hitting the DB.

Are there any hacks to speed up the unit testing flow? I really don’t want to use an external test runner if possible but i’d like to get the file i’m writing to report in under 1 second after save.