Python Forum
VSCode not able to discover tests
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VSCode not able to discover tests
#5
I found the mistake based on your previous post. Thanks.

The function names started with 'Test' when these should start with 'test'. It seems it is case-sensitive.

After changing function name to 'testAddition', I am getting: 'Run Test | Debug Test' on top of the function.

However, VSCode alerts are confusing. Previously, when it was not discovering tests, it was still showing 'Run Tests' on the status bar and also was showing separate alert "No tests were found'.
Reply


Messages In This Thread
VSCode not able to discover tests - by rpk2006 - Jul-15-2020, 04:06 AM
RE: VSCode not able to discover tests - by ndc85430 - Jul-15-2020, 04:48 AM
RE: VSCode not able to discover tests - by rpk2006 - Jul-15-2020, 05:01 AM
RE: VSCode not able to discover tests - by ndc85430 - Jul-15-2020, 05:35 AM
RE: VSCode not able to discover tests - by rpk2006 - Jul-15-2020, 05:49 AM
RE: VSCode not able to discover tests - by ndc85430 - Jul-15-2020, 06:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Ran 0 tests in 0.000s - unittest Peaches 8 5,298 Dec-31-2021, 08:58 AM
Last Post: Peaches
  StopIteration exception when mock PostgreSQL connection in several tests igor87z 1 2,971 Jun-10-2020, 06:16 PM
Last Post: ibreeden
  Running tests in a sibling directory to code sodhiar 1 2,756 Nov-07-2019, 11:28 PM
Last Post: MckJohan
  pytest loop through multiple tests? burvil 0 4,359 Sep-26-2019, 11:42 PM
Last Post: burvil
  How do i write tests for this code? hshivaraj 0 2,054 Apr-27-2019, 05:28 PM
Last Post: hshivaraj
  Python unittest - running multiple tests from CSV file asheru93 0 4,250 Jan-21-2019, 08:26 AM
Last Post: asheru93
  Tests are not running .Dont why shankar 3 6,383 Sep-20-2018, 07:06 AM
Last Post: shankar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020