| May | JUN | Jul |
| 07 | ||
| 2021 | 2022 | 2023 |
COLLECTED BY
Collection: Save Page Now Outlinks
@property to mock unit
tests.
Unit Testing Doesn’t Affect Codebases the Way You Would Think
presents research on how unit testing impacts project code and
ways that it does not. It is only one research report but the findings
on more unit tests leading to higher Cyclomatic Complexity per method
are interesting. Perhaps more tests are needed to keep a project
running due to the increased complexity.
Python unittest with Robert Collins
is the transcript of an interview with Robert Collins who is a core
committer of unittest.
Precise Unit Tests with PyHamcrest
is a short tutorial on using the
PyHamcrest assertion tool for
unit testing.
Why most unit testing is a waste
discusses how low risk unit tests rarely fail even as the code
changes and why they do not matter as much to a project's health as
many developers are led to believe based on the test-driven development
dogma.
Writing Unit Tests for Django Migrations
digs into code examples for testing Django data migrations.
The business case for unit testing
makes arguments for management should buy into unit testing,
including risk management and faster development timelines.
Unit testing often requires a bunch of fake data to use as inputs that
otherwise are generated by users or oother parts of a system not
under test. Fake data generation tools can help create data instead
of having too write it all yourself. This post on
generating fake data with Faker
shows how to use the Faker tool with various seeds and outputs into
your tests.
Unit Testing Applications that use Flask-Login and Flask-SocketIO
explains how to set up a WebSockets unit test
with a couple of common Flask libraries.