Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1927

[python] Option to run a single test through Test Explorer does not work [must switch to VSCode Editor to get latest ms-python extension]

XMLWordPrintable

    • False
    • False
    • Undefined
    • Hide

      1. Create sample tests

      eg. test_1.py :

      import pytest

      def test_pytest_1():
      assert True

      def test_pytest_2():
      assert False

      2. Enable a test framework pytest

      3. Try to run a specific test using the run option as shown in the attached screenshot

      Show
      1. Create sample tests eg. test_1.py : import pytest def test_pytest_1(): assert True def test_pytest_2(): assert False 2. Enable a test framework pytest 3. Try to run a specific test using the run option as shown in the attached screenshot

      The option to run a single test in Test Explorer does not work. Users can use "Python: Run Test File' command from the Command Palette to run single tests but the run button does not work. Refer to the attached screenshot.

        1. Screenshot from 2022-09-29 01-21-53.png
          Screenshot from 2022-09-29 01-21-53.png
          68 kB
        2. screenshot-9.png
          screenshot-9.png
          20 kB
        3. screenshot-8.png
          screenshot-8.png
          11 kB
        4. screenshot-7.png
          screenshot-7.png
          98 kB
        5. screenshot-6.png
          screenshot-6.png
          74 kB
        6. screenshot-5.png
          screenshot-5.png
          248 kB
        7. screenshot-4.png
          screenshot-4.png
          303 kB
        8. screenshot-10.png
          screenshot-10.png
          90 kB
        9. screenshot-1.png
          screenshot-1.png
          492 kB
        10. pytest.png
          pytest.png
          22 kB
        11. image-2022-12-15-12-10-05-015.png
          image-2022-12-15-12-10-05-015.png
          42 kB
        12. image-2022-12-14-19-13-46-521.png
          image-2022-12-14-19-13-46-521.png
          59 kB
        13. image-2021-12-03-10-34-48-288.png
          image-2021-12-03-10-34-48-288.png
          208 kB

              nickboldt Nick Boldt
              rhn-support-harsharm Harshvardhan Sharma (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: