Skip to content

Unittests error, wrong number of tests displayed on windows #708

Closed
@cjavad

Description

@cjavad

Environment data

VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: Python 3.6
OS and version: Windows 10 1709 16299.192

Actual behavior

unittest reports 9 tests runned instead of 11 tests (besides the green checkmark. but it reports 11 runned in the output)
but on linux it reports 11 tests runned

Expected behavior

As on linux, 11 tests runned besides the green checkmark

Steps to reproduce:

  • create some unittests (make sure they are all discovered)
  • Use the "run all tests" command and see both the output from the terminal and the visual.

Logs

Output from Python output panel
bug_report_python_vscode_unittests

Output from Console window (Help->Developer Tools menu)

undefined
[Extension Host] Error: read ECONNRESET (links to this line `console[entry.severity].apply(console, consoleArgs;)`)

EDIT: If i make one of the tests fail, it says 10 instead of nine? but not displaying the red cross, and it prints an error Unhandled exception in thread started by

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions