diff --git a/.lesson/assets/repl-configure-4.png b/.lesson/assets/repl-configure-4.png new file mode 100644 index 0000000..99ffcc5 Binary files /dev/null and b/.lesson/assets/repl-configure-4.png differ diff --git a/.lesson/assets/repl-configure-5.png b/.lesson/assets/repl-configure-5.png new file mode 100644 index 0000000..5e5d7a3 Binary files /dev/null and b/.lesson/assets/repl-configure-5.png differ diff --git a/.lesson/assets/repl-configure-6.png b/.lesson/assets/repl-configure-6.png new file mode 100644 index 0000000..018e758 Binary files /dev/null and b/.lesson/assets/repl-configure-6.png differ diff --git a/README.md b/README.md index b24c03a..9079d68 100644 --- a/README.md +++ b/README.md @@ -142,3 +142,23 @@ git switch master ``` The repl set up is complete at this point. + +### Add Replit project tests + +In **Tools** section press `Tests` button and choose a testing method, +*Unit tests* will be suitable in most cases. + +![](.lesson/assets/repl-configure-4.png) + +First you need to set up unit tests. In a setup window add required imports. +Also, you can provide `setUp` and `tearDown` methods within advanced setup +section. + +![](.lesson/assets/repl-configure-5.png) + +After the `unittest` framework is set up, it a copy-paste time. Add tests by +pressing `Add test` button. Provide a test name (omit "test" at the beginning), +error message and the test's code itself. +Press `Create test` button when ready. + +![](.lesson/assets/repl-configure-6.png)