question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python unit test: UI displays "No tests ran", but tests are executed

See original GitHub issue

Environment 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. grafik

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 (ViewOutput, 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:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
spotapovcommented, Oct 10, 2018

I can’t reproduced issue, sorry. Maybe it was fixed in the latest python extention?

0reactions
DonJayamannecommented, Oct 10, 2018

Thanks for getting back to us.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found