Skip to content

Commit

Permalink
Update readme and demo images (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHutchison authored Dec 1, 2023
1 parent 9fe074a commit f991944
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ The minimum Python version is 3.10
## Demo

### With hot reloading
Slower initial start time but faster subsequent runs
Faster subsequent runs

![Hot reloading demo](docs/hot-reloading-demo.gif)
![Hot reloading demo](docs/with-daemon.gif)

### Without hot reloading
![Not hot reloading demo](docs/not-hot-reloading-demo.gif)
![Not hot reloading demo](docs/no-daemon.gif)

## Installation
Do not install in production code. This is exclusively for the developer environment.
Expand All @@ -54,12 +54,11 @@ When running pytest, the plugin will detect whether the daemon is running.
If the daemon is not running, it will error unless the `--daemon-start-if-needed` argument is passed.

The current version of the VS Code Python extension is not, by default, compatible with automatically starting the daemon. The
test runner will hang. However, you can revert to legacy behavior which will allow for using the automatic starting.
test runner will hang. However, you can revert to legacy behavior which will allow for using the automatic starting.
See the VS Code section below for more information.

The recommended way to run the daemon is to give it its own run run profile so you can easily use the debugger in tests. As a convenience
you can also, if you're using a dev container, add this to your postStartCommand: `pytest --daemon &`. If it doesn't seem
to work, see: https://github.com/microsoft/vscode-remote-release/issues/8536
you can also, if you're using a dev container, add this to your postStartCommand: `pytest --daemon &`. If the daemon doesn't start from your postStartCommand, see: https://github.com/microsoft/vscode-remote-release/issues/8536

Note that a pid file is created to track the pid.

Expand Down
Binary file removed docs/hot-reloading-demo.gif
Binary file not shown.
Binary file added docs/no-daemon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/not-hot-reloading-demo.gif
Binary file not shown.
Binary file added docs/with-daemon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f991944

Please sign in to comment.