Skip to content

Fails to debug pytest tests in conda environment #508

@MarximusMaximus

Description

@MarximusMaximus

Type: Bug

Behaviour

When attempting to debug run a pytest test within a conda environment, the test never starts.

Steps to reproduce:

  1. Install & Enable Python Environments plugin. NOTE: if re-enabling, you MUST reload vscode to experience the issue reliably.
  2. Have project that has a conda env.
  3. Setup project to use conda env correctly.
  4. Test environment setup by running tests WITHOUT debug.
  5. Run test or tests WITH debug.
  6. Observe failure in terminal.
  7. Wait a while, observe error message that eventually appears. "Timed out waiting for launcher to connect"

NOTES:

With plugin enabled, it attempts to

/usr/bin/env /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests

rather than something like

/usr/bin/env /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python

or

/usr/bin/env python

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Results w/ Plugin Enabled

Output Panel


2025-06-06 19:29:29.733 [info] > pyenv which python
2025-06-06 19:29:29.734 [info] cwd: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:29:31.197 [info] Active interpreter [/Volumes/src with spaces/pytest-prefer-nested-dup-tests]:  /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests
2025-06-06 19:29:37.627 [info] Starting Pylance language server.
2025-06-06 19:29:37.630 [info] > /opt/conda/miniforge/bin/conda info --json
2025-06-06 19:36:17.392 [info] Discover tests for workspace name: pytest-prefer-nested-dup-tests - uri: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:36:17.398 [info] Environment variables set for pytest discovery: PYTHONPATH=/Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files, TEST_RUN_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/python-test-discovery-316b0bbcf43a70ccc0f6
2025-06-06 19:36:18.939 [info] ============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0 -- /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.17', 'Platform': 'macOS-15.4.1-arm64-arm-64bit', 'Packages': {'pytest': '8.4.0', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.7.0', 'anyio': '4.9.0', 'sugar': '1.0.0', 'html': '4.1.1', 'metadata': '3.1.1', 'prefer-nested-dup-tests': '0.1.1.dev0', 'cov': '6.1.1'}, 'PLATFORM': 'Darwin'}
rootdir: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
configfile: pyproject.toml
testpaths: .
plugins: xdist-3.7.0, anyio-4.9.0, sugar-1.0.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collecting ... 
2025-06-06 19:36:19.084 [info] collected 8 items

<Dir pytest-prefer-nested-dup-tests>
  <Package tests>
    <Package deeptest>
      <Package deepertest>
        <Module test___impl.py>
          tests/deeptest/deepertest/test___impl.py (pytest-prefer-nested-dup-tests)
          <Function test___main>
            test___main: simple test to confirm this subpackage of tests loads
            
            Args:
                testdir (PytestFixture):
      <Module test___impl.py>
        tests/deeptest/test___impl.py (pytest-prefer-nested-dup-tests)
        <Function test___main>
          test___main: simple test to confirm this subpackage of tests loads
          
          Args:
              testdir (PytestFixture):
    <Module test___impl.py>
      tests/test___impl.py (pytest-prefer-nested-dup-tests)
      <Function test___main>
        test___main: simple test to confirm this subpackage of tests loads
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_dir>
        test_drop_duplicated_dir tests if same toplevel dir is found twice
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_pkg>
        test_drop_duplicated_pkg tests if same toplevel package is found twice
        
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_files>
        test_drop_duplicated_files tests if same toplevel file is found twice
        
        Args:
            testdir (PytestFixture):
      <Function test_nested_package>
        test_nested_package tests finding nested packages and reporting them as nested
        
        Args:
            testdir (PytestFixture): _description_
      <Function test___toplevel_coverage>
        test___toplevel_coverage is only to allow coverage.py to see the top level and
            outermost scope of our code
        
        Args:
            testdir (PytestFixture):

================================ tests coverage ================================
______________ coverage: platform darwin, python 3.10.17-final-0 _______________

Name                                           Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------
src/pytest_prefer_nested_dup_tests/__impl.py      25      8      6      0    74%   13-62, 76
tests/__init__.py                                  0      0      0      0   100%
tests/conftest.py                                  2      0      0      0   100%
tests/deeptest/__init__.py                         0      0      0      0   100%
tests/deeptest/deepertest/__init__.py              0      0      0      0   100%
tests/deeptest/deepertest/test___impl.py           5      2      0      0    60%   44-45
tests/deeptest/test___impl.py                      5      2      0      0    60%   44-45
tests/test___impl.py                              47     38      2      0    22%   43-44, 55-67, 79-94, 105-125, 138-205, 224-239
------------------------------------------------------------------------------------------
TOTAL                                             84     50      8      0    46%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
- Generated html report: file:///Volumes/src%20with%20spaces/pytest-prefer-nested-dup-tests/.reports/test-report-coverage.html -
========================== 8 tests collected in 0.12s ==========================

2025-06-06 19:37:41.759 [info] > /opt/conda/miniforge/bin/conda run -p /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests --no-capture-output python ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/printEnvVariables.py
2025-06-06 19:37:41.759 [info] shell: bash
2025-06-06 19:37:43.146 [info] arg: --rootdir already exists in args, not adding.
2025-06-06 19:37:43.146 [info] Attempting to use temp directory for test ids file, file name: test-ids-c7c77bfc51a48742b5dd.txt
2025-06-06 19:37:43.147 [info] Environment variables set for pytest execution: PYTHONPATH=/Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files, TEST_RUN_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/python-test-results-843f72083d2469fde2fb, RUN_TEST_IDS_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/test-ids-c7c77bfc51a48742b5dd.txt
2025-06-06 19:37:43.147 [info] Running DEBUG pytest with arguments: --rootdir=/Volumes/src with spaces/pytest-prefer-nested-dup-tests,--capture=no for workspace /Volumes/src with spaces/pytest-prefer-nested-dup-tests 

2025-06-06 19:37:43.147 [info] Using configuration in launch.json
2025-06-06 19:37:43.389 [info] CreateEnv Trigger - Skipping for /Volumes/src with spaces/pytest-prefer-nested-dup-tests


Terminal

Last Login:                      Thu Jun  5 03:07   still logged in
 /usr/bin/env /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests /Users/marximus/.vscode/extensions/ms-python.debugpy-2025.8.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 55505 -- /Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/vscode_pytest/run_pytest_script.py --rootdir=/Volumes/src\ with\ spaces/pytest-prefer-nested-dup-tests --capture=no 
(placeholder) heptagearogram-2:pytest-prefer-nested-dup-tests marximus$  /usr/bin/env /opt/conda/minifor
ge/envs/pytest-prefer-nested-dup-tests /Users/marximus/.vscode/extensions/ms-python.debugpy-2025.8.0-dar
win-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 55505 -- /Users/marximus/.vscode/extension
s/ms-python.python-2025.6.1-darwin-arm64/python_files/vscode_pytest/run_pytest_script.py --rootdir=/Volu
mes/src\ with\ spaces/pytest-prefer-nested-dup-tests --capture=no 
env: /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests: Permission denied
(placeholder) heptagearogram-2:pytest-prefer-nested-dup-tests marximus$     

After while, an error popup message appears, "Timed out waiting for launcher to connect", "Open 'launch.json'", "Cancel".

Image
Expected Results / With plugin disabled

With the plugin disabled the following results occur and are what are expected behavior.

Output Panel


2025-06-06 19:40:42.170 [info] Native locator: Refresh started
2025-06-06 19:40:42.170 [info] > pyenv which python
2025-06-06 19:40:42.170 [info] cwd: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:40:43.681 [info] > /opt/conda/miniforge/bin/conda info --json
2025-06-06 19:40:47.546 [info] Conda environment manager found at: /opt/conda/miniforge/bin/conda
2025-06-06 19:40:47.546 [info] Using conda from setting: /opt/conda/miniforge/bin/conda
2025-06-06 19:40:47.648 [info] Conda environment manager found at: /Users/marximus/miniforge3/bin/conda
2025-06-06 19:40:47.648 [info] Conda set to: /opt/conda/miniforge/bin/conda
2025-06-06 19:40:47.672 [info] Conda environment manager found at: /Users/marximus/miniforge3builder/bin/conda
2025-06-06 19:40:47.672 [info] Conda set to: /opt/conda/miniforge/bin/conda
2025-06-06 19:40:47.705 [info] Native locator: Refresh finished in 6254 ms
2025-06-06 19:40:49.064 [info] Python interpreter path: /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python
2025-06-06 19:40:51.530 [info] Starting Pylance language server.
2025-06-06 19:41:10.841 [info] Discover tests for workspace name: pytest-prefer-nested-dup-tests - uri: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:41:10.846 [info] Environment variables set for pytest discovery: PYTHONPATH=/Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files, TEST_RUN_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/python-test-discovery-61938b62d9fa07a4a2d0
2025-06-06 19:41:10.847 [info] > /opt/conda/miniforge/bin/conda run -p /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests --no-capture-output python ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/printEnvVariables.py
2025-06-06 19:41:10.847 [info] shell: bash
2025-06-06 19:41:12.254 [info] > /opt/conda/miniforge/bin/conda run -p /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests --no-capture-output python ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/get_output_via_markers.py -m pytest -p vscode_pytest --collect-only "--rootdir=/Volumes/src with spaces/pytest-prefer-nested-dup-tests"
2025-06-06 19:41:12.254 [info] cwd: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:41:13.294 [info] >>>PYTHON-EXEC-OUTPUT

2025-06-06 19:41:13.609 [info] ============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0 -- /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python

2025-06-06 19:41:13.615 [info] cachedir: .pytest_cache
metadata: {'Python': '3.10.17', 'Platform': 'macOS-15.4.1-arm64-arm-64bit', 'Packages': {'pytest': '8.4.0', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.7.0', 'anyio': '4.9.0', 'sugar': '1.0.0', 'html': '4.1.1', 'metadata': '3.1.1', 'prefer-nested-dup-tests': '0.1.1.dev0', 'cov': '6.1.1'}, 'PLATFORM': 'Darwin'}
rootdir: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:41:13.615 [info] 
configfile: pyproject.toml
testpaths: .
plugins: xdist-3.7.0, anyio-4.9.0, sugar-1.0.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collecting ... 
2025-06-06 19:41:13.653 [info] collected 8 items

2025-06-06 19:41:13.653 [info] 
<Dir pytest-prefer-nested-dup-tests>
  <Package tests>
    <Package deeptest>
      <Package deepertest>
        <Module test___impl.py>
          tests/deeptest/deepertest/test___impl.py (pytest-prefer-nested-dup-tests)
          <Function test___main>
            test___main: simple test to confirm this subpackage of tests loads
            
            Args:
                testdir (PytestFixture):
      <Module test___impl.py>
        tests/deeptest/test___impl.py (pytest-prefer-nested-dup-tests)
        <Function test___main>
          test___main: simple test to confirm this subpackage of tests loads
          
          Args:
              testdir (PytestFixture):
    <Module test___impl.py>
      tests/test___impl.py (pytest-prefer-nested-dup-tests)
      <Function test___main>
        test___main: simple test to confirm this subpackage of tests loads
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_dir>
        test_drop_duplicated_dir tests if same toplevel dir is found twice
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_pkg>
        test_drop_duplicated_pkg tests if same toplevel package is found twice
        
        
        Args:
            testdir (PytestFixture):
      <Function test_drop_duplicated_files>
        test_drop_duplicated_files tests if same toplevel file is found twice
        
        Args:
            testdir (PytestFixture):
      <Function test_nested_package>
        test_nested_package tests finding nested packages and reporting them as nested
        
        Args:
            testdir (PytestFixture): _description_

2025-06-06 19:41:13.653 [info]       <Function test___toplevel_coverage>
        test___toplevel_coverage is only to allow coverage.py to see the top level and
            outermost scope of our code
        
        Args:
            testdir (PytestFixture):

2025-06-06 19:41:13.725 [info] 
================================ tests coverage ================================
______________ coverage: platform darwin, python 3.10.17-final-0 _______________

Name                                           Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------
src/pytest_prefer_nested_dup_tests/__impl.py      25      8      6      0    74%   13-62, 76
tests/__init__.py                                  0      0      0      0   100%
tests/conftest.py                                  2      0      0      0   100%
tests/deeptest/__init__.py                         0      0      0      0   100%
tests/deeptest/deepertest/__init__.py              0      0      0      0   100%
tests/deeptest/deepertest/test___impl.py           5      2      0      0    60%   44-45
tests/deeptest/test___impl.py                      5      2      0      0    60%   44-45
tests/test___impl.py                              47     38      2      0    22%   43-44, 55-67, 79-94, 105-125, 138-205, 224-239
------------------------------------------------------------------------------------------
TOTAL                                             84     50      8      0    46%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
- Generated html report: file:///Volumes/src%20with%20spaces/pytest-prefer-nested-dup-tests/.reports/test-report-coverage.html -
========================== 8 tests collected in 0.12s ==========================

2025-06-06 19:41:13.787 [info] <<<PYTHON-EXEC-OUTPUT

2025-06-06 19:41:19.404 [info] arg: --rootdir already exists in args, not adding.
2025-06-06 19:41:19.404 [info] Attempting to use temp directory for test ids file, file name: test-ids-ba77c50b8c2df62b2305.txt
2025-06-06 19:41:19.405 [info] Environment variables set for pytest execution: PYTHONPATH=/Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files, TEST_RUN_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/python-test-results-cf3cdda29de069fa3d28, RUN_TEST_IDS_PIPE=/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/test-ids-ba77c50b8c2df62b2305.txt
2025-06-06 19:41:19.405 [info] Running DEBUG pytest with arguments: --rootdir=/Volumes/src with spaces/pytest-prefer-nested-dup-tests,--capture=no for workspace /Volumes/src with spaces/pytest-prefer-nested-dup-tests 

2025-06-06 19:41:19.406 [info] Using configuration in launch.json
2025-06-06 19:41:19.623 [info] CreateEnv Trigger - Skipping for /Volumes/src with spaces/pytest-prefer-nested-dup-tests
2025-06-06 19:41:20.050 [info] > /opt/conda/miniforge/bin/conda info --json
2025-06-06 19:41:20.548 [info] Send text to terminal: conda activate pytest-prefer-nested-dup-tests
2025-06-06 19:41:36.945 [info] Test Result named pipe /var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/python-test-results-cf3cdda29de069fa3d28  cancelled


Terminal

conda activate pytest-prefer-nested-dup-tests
Last Login:                      Thu Jun  5 03:07   still logged in
 /usr/bin/env /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python /Users/marximus/.vscode/extensions/ms-python.debugpy-2025.8.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 55664 -- /Users/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/vscode_pytest/run_pytest_script.py --rootdir=/Volumes/src\ with\ spaces/pytest-prefer-nested-dup-tests --capture=no 
(placeholder) heptagearogram-2:pytest-prefer-nested-dup-tests marximus$ conda activate pytest-prefer-nes
ted-dup-tests
(pytest-prefer-nested-dup-tests) heptagearogram-2:pytest-prefer-nested-dup-tests marximus$  /usr/bin/env
 /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python /Users/marximus/.vscode/extensions/
ms-python.debugpy-2025.8.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 55664 -- /Us
ers/marximus/.vscode/extensions/ms-python.python-2025.6.1-darwin-arm64/python_files/vscode_pytest/run_py
test_script.py --rootdir=/Volumes/src\ with\ spaces/pytest-prefer-nested-dup-tests --capture=no 
Running pytest with args: ['-p', 'vscode_pytest', '--rootdir=/Volumes/src with spaces/pytest-prefer-nested-dup-tests', '--capture=no', '/Volumes/src with spaces/pytest-prefer-nested-dup-tests/tests/test___impl.py::test_nested_package']
============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0 -- /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.17', 'Platform': 'macOS-15.4.1-arm64-arm-64bit', 'Packages': {'pytest': '8.4.0', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.7.0', 'anyio': '4.9.0', 'sugar': '1.0.0', 'html': '4.1.1', 'metadata': '3.1.1', 'prefer-nested-dup-tests': '0.1.1.dev0', 'cov': '6.1.1'}, 'PLATFORM': 'Darwin'}
rootdir: /Volumes/src with spaces/pytest-prefer-nested-dup-tests
configfile: pyproject.toml
plugins: xdist-3.7.0, anyio-4.9.0, sugar-1.0.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collecting ... collected 1 item

tests/test___impl.py::test_nested_package ============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0 -- /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.17', 'Platform': 'macOS-15.4.1-arm64-arm-64bit', 'Packages': {'pytest': '8.4.0', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.7.0', 'anyio': '4.9.0', 'html': '4.1.1', 'metadata': '3.1.1', 'prefer-nested-dup-tests': '0.1.1.dev0', 'cov': '6.1.1'}, 'PLATFORM': 'Darwin'}
rootdir: /private/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/pytest-of-marximus/pytest-33/test_nested_package0
plugins: xdist-3.7.0, anyio-4.9.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collecting ... collected 2 items

<Dir test_nested_package0>
  <Package tests>
    <Package bar>
      <Module test_bar.py>
        <Function test_bar>
    <Package foo>
      <Module test_foo.py>
        <Function test_foo>

========================== 2 tests collected in 0.01s ==========================
============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0 -- /opt/conda/miniforge/envs/pytest-prefer-nested-dup-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.17', 'Platform': 'macOS-15.4.1-arm64-arm-64bit', 'Packages': {'pytest': '8.4.0', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.7.0', 'anyio': '4.9.0', 'html': '4.1.1', 'metadata': '3.1.1', 'prefer-nested-dup-tests': '0.1.1.dev0', 'cov': '6.1.1'}, 'PLATFORM': 'Darwin'}
rootdir: /private/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/pytest-of-marximus/pytest-33/test_nested_package0
plugins: xdist-3.7.0, anyio-4.9.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collecting ... collected 2 items

tests/bar/test_bar.py::test_bar PASSED                                   [ 50%]
tests/foo/test_foo.py::test_foo PASSED                                   [100%]

============================== 2 passed in 0.02s ===============================
============================= test session starts ==============================
platform darwin -- Python 3.10.17, pytest-8.4.0, pluggy-1.6.0
rootdir: /private/var/folders/4k/r9plgthx7nx2ds7jhrlb4qyw0000gn/T/pytest-of-marximus/pytest-33/test_nested_package0
plugins: xdist-3.7.0, anyio-4.9.0, html-4.1.1, metadata-3.1.1, prefer-nested-dup-tests-0.1.1.dev0, cov-6.1.1
collected 2 items

<Dir test_nested_package0>
  <Package tests>
    <Package foo>
      <Module test_foo.py>
        <Function test_foo>
    <Package bar>
      <Module test_bar.py>
        <Function test_bar>

========================== 2 tests collected in 0.01s ==========================
PASSED

================================ tests coverage ================================
______________ coverage: platform darwin, python 3.10.17-final-0 _______________

Name                                           Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------
src/pytest_prefer_nested_dup_tests/__impl.py      25      8      6      0    74%   13-62, 76
tests/__init__.py                                  0      0      0      0   100%
tests/conftest.py                                  2      0      0      0   100%
tests/deeptest/__init__.py                         0      0      0      0   100%
tests/deeptest/deepertest/__init__.py              0      0      0      0   100%
tests/deeptest/deepertest/test___impl.py           5      5      0      0     0%   12-45
tests/deeptest/test___impl.py                      5      5      0      0     0%   12-45
tests/test___impl.py                              47     23      2      0    53%   43-44, 55-67, 79-94, 105-125, 224-239
------------------------------------------------------------------------------------------
TOTAL                                             84     41      8      0    55%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
- Generated html report: file:///Volumes/src%20with%20spaces/pytest-prefer-nested-dup-tests/.reports/test-report-coverage.html -
============================== 1 passed in 0.45s ===============================
(pytest-prefer-nested-dup-tests) heptagearogram-2:pytest-prefer-nested-dup-tests marximus$ 

Extension version: 0.3.11561010
VS Code version: Code 1.100.3 (Universal) (258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3, 2025-06-02T13:30:54.273Z)
OS version: Darwin arm64 24.4.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 14, 13, 12
Memory (System) 64.00GB (0.15GB free)
Process Argv --crash-reporter-id 56a5da15-b56d-4672-93cc-0157a7906d47
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolor:31314202
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
nesew1to4:31323295

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions