Unit test execution speed (how many tests per second?)

后端 未结 10 821
有刺的猬
有刺的猬 2021-02-01 05:31

What kind of execution rate do you aim for with your unit tests (# test per second)? How long is too long for an individual unit test?

I\'d be interested in knowing if

10条回答
  •  广开言路
    2021-02-01 06:09

    Data Point -- Python Regression Tests

    Here are the numbers on my laptop for running "make test" for Python 2.5.2:

    • number of tests: 3851 (approx)
    • execution time: 9 min, 6 sec
    • execution rate: 7 tests / sec

提交回复
热议问题