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

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

                Created:
                Updated:
                Resolved: