donkirkby / live-py-plugin

Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
https://donkirkby.github.io/live-py-plugin
MIT License
292 stars 56 forks source link

Display execution of tests #297

Closed donkirkby closed 3 years ago

donkirkby commented 3 years ago

Writing a unit test with pytest or unittest makes a great driver for the code under test, but it's also nice sometimes to display what's happening in the test itself. This worked a while ago, but for some reason, I now get an error like this:

------------------------------------------------------------------------------------------------------------------------------------ |
unittest foo doesn't call the home.don..config.JetBrains.PyCharm2020.3.scratches.test_foo module. Try a different run configuration. |
------------------------------------------------------------------------------------------------------------------------------------ |
donkirkby commented 3 years ago

It looks like the test display works fine when the test file is in the main project folder, but not when it's in a subfolder.