Testix

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
  • Tutorial
  • Testix Basics
  • View page source

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
Previous Next

© Copyright 2022, Yoav Kleinberger.

Built with Sphinx using a theme provided by Read the Docs.