Starter project for getting approvaltests up and running
- Who is this project for?
- Getting Started
- What is included?
- Recommended Tooling?
- ApprovalTests Basics
- Next steps
Anyone that wants to do some new code in Python with Approvaltests.
It works great for experimentation, katas or starting a green field project.
If you are familar with python, you can either:
- download the zip (under the
code
button
or
- Fork the code by pressing
use this template
If you are having any difficulties, We suggest you watch the getting started video
tip: pause the video after each step and do it so you are in sync
- Github actions - CI that runs your tests on Mac, Windows & Linux
This is also what powers the green 'passing' badge at the top of this document requirements.txt
- standard place to include all your pip dependiences from pypi- `tox.ini' - A working tox file
tests
&project
folders - to keep your production code and tests seperate- Sample tests that pass - to get you off to a great start
- MDSnippets intergration to easily add code snippets to your markdown documentation
Approvaltests uses methods that start with verify
like verify(object_under_test)
The expected result is stored in a file like such:
{
"age": 38,
"firstName": "jayne",
"isMale": true,
"lastName": "cobb"
}
If you are just exploring you might want to try a sample exercise(kata). I would suggest you start with LCD digits kata