Testix
12.0.1

Contents:

  • Reference
  • Tutorial
    • Design of the LineMonitor
    • End-to-End Test
    • Failing Properly
    • Testix Basics
      • Working With Scenarios and Fake Objects
      • More Advanced Tests
      • Exact Enforcement
      • Recap
    • Line Monitor Unit Tests
    • Conclusion
    • More About Readability
Testix
  • Docs »
  • Tutorial »
  • Testix Basics
  • Edit on GitHub

Testix Basics¶

It’s time to start writing unit tests using Testix. In this section we’ll cover all the basics, then move on to our more complete LineMonitor example.

  • Working With Scenarios and Fake Objects
    • Mock Objects
    • The Standard Library Way - unittest.mock
    • Testix Fake Objects and Scenarios
      • Setting the Expectations
      • Meeting the Expectations
  • More Advanced Tests
    • Specifying Return Values
    • Exactness
  • Exact Enforcement
    • Wrong Arguments
    • Unexpected Calls
    • Ways Around Exactness
  • Recap
Next Previous

© Copyright 2022, Yoav Kleinberger. Revision 188fe75d.

Built with Sphinx and ❤️ using a custom theme based on Read the Docs.