-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added doc on how to run tests locally
- Loading branch information
1 parent
5c65149
commit dfa6350
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Testing | ||
|
||
To run the tests locally, ensure you have a Python virtual environment and Docker set up. | ||
|
||
## Steps to Run Tests | ||
|
||
1. **Open Terminal**: | ||
- Navigate to the root directory of the project. | ||
- Ensure the files `admin.py` and `run-tests.sh` are present. | ||
|
||
2. **Build the Test Directory**: | ||
- Run the following command in your terminal: | ||
```sh | ||
python admin.py build --tests | ||
``` | ||
- This will create a `build` directory with all the project files, including a `test` directory. | ||
|
||
3. **Run the Tests**: | ||
- Execute the script to run the tests: | ||
```sh | ||
./run-tests.sh | ||
``` | ||
- This script will spin up a Docker container to run the tests. |