Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Add replit unit tests section
Browse files Browse the repository at this point in the history
  • Loading branch information
shorodilov committed Nov 1, 2023
1 parent f045e4d commit 6d1d0e1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Binary file added .lesson/assets/repl-configure-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .lesson/assets/repl-configure-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .lesson/assets/repl-configure-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6d1d0e1

Please sign in to comment.