purescript / spago

🍝 PureScript package manager and build tool
BSD 3-Clause "New" or "Revised" License
778 stars 131 forks source link

Cleanup bump-version tests #440

Closed jhrcek closed 4 years ago

jhrcek commented 4 years ago

The tests for bump-version command are slower compared to other tests (each taking ~7s on my pc). In my opinion it doesn't make sense to have so many end2end tests checking this functionality. I think we should reduce these tests to maybe 1-2 end2end tests (using spago cli directly) and the rest should be deleted and replaced by unit/property tests of getNextVersion. WDYT?

f-f commented 4 years ago

@jhrcek sounds great! Faster tests are always nice 🙂

jhrcek commented 4 years ago

Here are just some numbers for referene:

Test suite duration as reported by Hspec Finished in X seconds, measured on my machine and averaged over 5 runs: stack test: ~ 118 seconds stack test --test-arguments '-m BumpVersion': ~ 69 seconds

So BumpVersion tests take about 57% time of the entire test suite.

jhrcek commented 4 years ago

Resolved in https://github.com/spacchetti/spago/pull/445