how to make a test driven development environment automatically
You made it this far and have become the greatest programmer in the world. To follow The Do Not Repeat Yourself (DRY) Principle, I write a program with the commands to make a Python Test Driven Development environment automatically anytime I want on a
Windows Computer that does NOT have Windows Subsystem for Linux
computer with MacOS, Linux or Windows with Windows Subsystem for Linux
review
To review, here are steps I take to make the environment for every project
on a computer with MacOS, Linux or Windows with Windows Subsystem for Linux
I give the project a name
I make a Python file to hold the source code in the ‘src’ folder
I make a Python file to hold the tests in the ‘tests’ folder
I make the test pass
then I start working on the project
on a Windows computer without Windows Subsystem for Linux
I give the project a name
I make a Python file to hold the source code in the ‘src’ folder
I make a Python file to hold the tests in the ‘tests’ folder
I make a requirements file for the needed Python packages
I run the tests automatically
I make the test pass
then I start working on the project
I want to give one command for the program, the only steps I want to do are
give the project a name
make the test pass and
work on the project (though I can now use Artificial Intelligence to help with all of them)
this way I only need to do 3 steps instead of 18
As a reminder here is what the structure looks like if the name of the project is PROJECT_NAME
PROJECT_NAME
├── requirements.txt
├── src
│ └── PROJECT_NAME.py
└── tests
└── test_PROJECT_NAME.py
what is covered?
These chapters show how I setup a project in `Python Test Driven Development environment`_ automatically on any computer (Linux, Windows, MacOS)
they cover the following
on Linux, MacOS and Windows with Window Subsystem for Linux computers
On Windows computers without Windows Subsystem for Linux
at the end of the chapter you will know how to automatically make a Python Test Driven Development project for MacOS, Linux, Windows Subsystem for Linux and Windows without Windows Subsystem for Linux