forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugregressionBug didn't exist in a previous releaseBug didn't exist in a previous release
Description
Environment data
Build of Visual Studio Code - Insiders: 1.45.0-insider
Build of python-insider: 2020.5.74187-dev
Repro steps
- Git clone https://github.com/qubitron/pydemo
- Open Anaconda Prompt window
- Cd pydemo
- Run py -3 setup.py
- Open hello-stackoverflow folder
- Press "Ctrl+Shift+p" to select "Run All Tests"
- Make sure a prompt is popup
- Click "Enable and configure a Test Framework"
- From the menus select "Unittest framework->Tests folder->Test_*.py" file
Expected behaviour
The unittest should be found successfully.
Actual behaviour
No test discovered error message pops up.

Others
I try to create a new folder and add an new test,py.
Input some code:
import unittest
class PassingTests(unittest.TestCase):
def test_passing(self):
self.assertEqual(42, 42)
def test_passing_still(self):
self.assertEqual("silly walk", "silly walk")
class FailingTests(unittest.TestCase):
def test_failure(self):
self.assertEqual(42, -13)
def test_failure_still(self):
self.assertEqual("I'm right!", "no, I am!")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugregressionBug didn't exist in a previous releaseBug didn't exist in a previous release
