Skip to content

Commit

Permalink
Make test_ids relative to workspace path not root dir (#21682)
Browse files Browse the repository at this point in the history
makes sure all testIds that are returned to the extension are relative
to the workspace (which will be the invocation directory) instead of to
the root. This will stop testIds for not being recognized when using a
config file or another parameter that changes the root directory during
pytest.

fixes #21640 and
#21637
  • Loading branch information
eleanorjboyd committed Jul 28, 2023
1 parent 06d62aa commit efcc3d7
Show file tree
Hide file tree
Showing 9 changed files with 812 additions and 250 deletions.
Empty file.
6 changes: 6 additions & 0 deletions pythonFiles/tests/pytestadapter/.data/root/tests/test_a.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


def test_a_function(): # test_marker--test_a_function
assert True
6 changes: 6 additions & 0 deletions pythonFiles/tests/pytestadapter/.data/root/tests/test_b.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


def test_b_function(): # test_marker--test_b_function
assert True
516 changes: 367 additions & 149 deletions pythonFiles/tests/pytestadapter/expected_discovery_test_output.py

Large diffs are not rendered by default.

Loading

0 comments on commit efcc3d7

Please sign in to comment.