We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test results report 1 pass and 1 fail.
Test results report 2 passes and no failures when the passing test is run. Test results report 2 fails and no passes when the failing test is run.
Gif showing that running the test from code lens duplicates the test results
venv
cd <workspace>
py -3.7 -m venv .venv
.venv/Scripts/Activate.ps1
python -m pip install -U pip
python -m pip install nose
test_nose.py
def test_passing(): assert 42 == 42 def test_failure(): assert 42 == -13
Run Tests
Run All Unit Tests
test_passing
test_failure
.F ====================================================================== FAIL: test_nose_tests.test_failure ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\.venv\lib\site-packages\nose\case.py", line 198, in runTest self.test(*self.arg) File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\test_nose_tests.py", line 6, in test_failure assert 42 == -13 AssertionError ---------------------------------------------------------------------- Ran 2 tests in 0.005s FAILED (failures=1)
.. ---------------------------------------------------------------------- Ran 2 tests in 0.001s OK
FF ====================================================================== FAIL: test_nose_tests.test_failure ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\.venv\lib\site-packages\nose\case.py", line 198, in runTest self.test(*self.arg) File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\test_nose_tests.py", line 6, in test_failure assert 42 == -13 AssertionError ====================================================================== FAIL: test_nose_tests.test_failure ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\.venv\lib\site-packages\nose\case.py", line 198, in runTest self.test(*self.arg) File "c:\dev\github\d3r3kk\test\bugbash_feb_2019\test_nose_tests.py", line 6, in test_failure assert 42 == -13 AssertionError ---------------------------------------------------------------------- Ran 2 tests in 0.002s FAILED (failures=2)
Console
Developer Tools
Not very interesting
console.ts:134 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\dev\github\d3r3kk\test\bugbash_feb_2019 console.ts:134 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = b, Arg 1: <Uri:c:\dev\github\d3r3kk\test\bugbash_feb_2019>, Arg 2: undefined console.ts:134 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\dev\github\d3r3kk\test\bugbash_feb_2019 console.ts:134 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = b, Arg 1: <Uri:c:\dev\github\d3r3kk\test\bugbash_feb_2019>, Arg 2: undefined console.ts:134 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, c:\dev\github\d3r3kk\test\bugbash_feb_2019 console.ts:134 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = b, Arg 1: <Uri:c:\dev\github\d3r3kk\test\bugbash_feb_2019>, Arg 2: undefined
The text was updated successfully, but these errors were encountered:
Closing via #16371
Sorry, something went wrong.
No branches or pull requests
Environment data
Expected behaviour
Test results report 1 pass and 1 fail.
Actual behaviour
Test results report 2 passes and no failures when the passing test is run.
Test results report 2 fails and no passes when the failing test is run.
Gif showing that running the test from code lens duplicates the test results
Steps to reproduce:
venv
for the workspace in a Powershell window:cd <workspace>
py -3.7 -m venv .venv
.venv/Scripts/Activate.ps1
python -m pip install -U pip
python -m pip install nose
test_nose.py
to the workspace.test_nose.py
:Run Tests
button in the status bar.Run All Unit Tests
in the command bar selection that pops up.test_passing
is marked as passing,test_failure
is marked as not passing).test_passing
code lens.test_failure
code lens.Logs from Python::Python Test Log
Logging from Python Run All Unit Tests
Logging from Clicking the Run Test Code Lens of the passing test:
Logging from Clicking the Run Test Code Lens of the failing test:
Output from
Console
under theDeveloper Tools
panelNot very interesting
The text was updated successfully, but these errors were encountered: