Changes between Version 13 and Version 14 of HowToWriteTests
- Timestamp:
- 2021-09-14T15:11:09Z (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToWriteTests
v13 v14 29 29 30 30 You may notice some existing tests use the `mock` module. 31 We are phasing out this style of testing .31 We are phasing out this style of testing ([https://nedbatchelder.com/blog/201206/tldw_stop_mocking_start_testing.html], [https://martinfowler.com/articles/mocksArentStubs.html]). 32 32 Please do not use it in new tests. 33 33 Instead, factor units and interfaces so mocks are not required. 34 34 If that is not possible then implement units so that they don't need to be mocked and can be used in the test suite. 35 If that is not possible then implement a verified fakeof the required interface and use that in the test suite.35 If that is not possible then implement [https://pythonspeed.com/articles/verified-fakes/ a verified fake] of the required interface and use that in the test suite. 36 36 37 37 = code coverage =