Skip to content

TPI: Symlinks with Pytest #22936

@eleanorjboyd

Description

@eleanorjboyd

Refs: 22658

Complexity: 3

Author: @eleanorjboyd

Create Issue

Create Issue


Thank you for doing this testing!

  • in terminal cd to parent folder parent
  • create folder inside parent target_folder with tests such as test_example.py (a file with a test inside)
  • from terminal create a symlink ln -s target_folder symlink_to_target_folder (this is for mac specifically)
  • open vscode with the folder symlink_to_target_folder can be done with code symlink_to_target_folder in terminal
  • from command palette use create environment command
  • in terminal install pytest via python -m pip install pytest
  • run test discovery (click beaker icon), test UI will be populated
  • check to make sure the root test explorer view is symlink_to_target_folder
  • click on "go to file" on a test, make sure the symlink file opens
  • try to run tests make sure it works

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions