Skip to content

Disabling unit tests doesn't work properly with multi-root workspace #4194

@luabud

Description

@luabud

Environment data

  • VS Code version: 1.31.0-insider
  • Extension version (available under the Extensions sidebar): 2019.1.0 (also tried with 2018.12.1)
  • OS and version: Windows_NT x64 10.1.17763
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Issue:
bugtestdiscovery3

Steps to reproduce:

  1. Open a multi-root workspace with two folders with one test file each
  2. Configure unit tests for each one of them (choose unittest framework)
  3. Run "Discover unit tests" and select the second folder
  4. Click on "Disable tests" when the "No tests discovered" message appear

Expected behaviour

The unit test settings on the second folder should be turned all to false

Actual behaviour

Instead, the unit test settings on the first folder are turned to false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions