Python unit test: UI displays "No tests ran", but tests are executed
See original GitHub issueEnvironment data
- VS Code version: 1.27.2 (user setup)
- Extension version (available under the Extensions sidebar): 2018.8.0 (04 September 2018)
- OS and version: Win 10 Enterprise Version 10.0.15063 Build 15063
- Python version (& distribution if applicable, e.g. Anaconda): Python for Windows 3.7.0
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): No
- Relevant/affected Python packages and their versions: unit test
Actual behavior
The Python unit test UI displays “No test ran”, but the tests are executed. See screenshot.
Expected behavior
UI discovers # of tests executed, if python unit test executed tests. UI does not show warning banner. Status bar does not show “No Tests Ran”.
Steps to reproduce:
- Create a python file and a python unit test
- Start to execute unit tests
- Complete configuration wizzard using unit test as test library
- Run unit test in any way
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
XXX
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
XXX
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Python unit test: UI displays "No tests ran", but tests ... - GitHub
The Python unit test UI displays "No test ran", but the tests are executed. See screenshot. grafik. Expected behavior. UI discovers # of...
Read more >python - Pytest - no tests ran - Stack Overflow
According to the pytest test conventions, your class should start with Test to be automatically picked up by the test discovery mechanism.
Read more >Automated tests are failing when ran together but pass when ...
Each time I run a test individually, it works 100% of times. However, if I try to run more than 5-6 tests together,...
Read more >Django Tutorial Part 10: Testing a Django web application
Django uses the unittest module's built-in test discovery, which will discover tests under the current working directory in any file named ...
Read more >Chapter 18: Testing and Continuous Integration
Nowadays, automated testing is a fundamental activity in software development. In this chapter you will see a survey of the tools available for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can’t reproduced issue, sorry. Maybe it was fixed in the latest python extention?
Thanks for getting back to us.