[ANN] Spyder-unittest 0.4.1 is released

169 views
Skip to first unread message

Jitse Niesen

unread,
May 23, 2020, 11:18:30 AM5/23/20
to spyder
Hi all,

On the behalf of all contributors, I'm pleased to announce that version 0.4.1 of the unittest plugin for Spyder has been released. You can use the plugin to run test suites using the nose, pytest or unittest framework and view the results. This is a bug fix release, which is compatible with Spyder 4.1.x. However, this release is not compatible with Python 2. See the changelog for further details.

We recommend that you install the plugin using Anaconda, with the command: conda install -c spyder-ide spyder-unittest. To upgrade the plugin, replace "install" with "upgrade" in the command. An alternative but unsupported installation method is to use pip.

Special thanks are due to Steffen Rehberg, who did most of the work for this release.

Please report bugs and feature requests on the project GitHub website: https://github.com/spyder-ide/spyder-unittest

Last, but not least, we welcome any contribution that helps making Spyder an efficient scientific development and computing environment. Join us to help creating your favourite environment!

Enjoy!
-Jitse

Leonid Makarovsky

unread,
Nov 15, 2020, 10:39:00 PM11/15/20
to spyder
Hi and thank you for the info,

How would I configure pytest suite within Spyder IDE with full printouts? For example, if I run pytest on the console, I'd use pytest -rP package_test.py::class::method to print every print statement. I wasn't able to find equivalent in the configuration. 

Thanks.

--Leonid

Jitse Niesen

unread,
Nov 19, 2020, 5:36:23 AM11/19/20
to spyder
Hi Leonid,

The output of print statements is reported in the 'Unit testing' pane by standard, also in passing tests. You can use the 'Expand all' option to show details for every test. However, the prints won't be reported in the output of pytest, as shown with the 'Show output' menu item. At the moment, you can't add command line options to the pytest invocation or turn on the -rP option in another way. Feel free to open a feature request on https://github.com/spyder-ide/spyder-unittest/issues so that we won't forget.

All the best,
Jitse
Reply all
Reply to author
Forward
0 new messages