-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
What's the problem this feature will solve?
- Reduce the occurrence of identical path prefixes in the output.
- Minimize platform-dependent differences in output.
Describe the solution you'd like
Use Cases:
import pytest
@pytest.mark.skip("balabala")
def test_skip():
pass
@pytest.mark.unknown_mark
def test_pass():
pass
def test_fixture(miss_setup):
print('hi there')
Execution:
pytest --junit-xml=junit.xml
Output: (Expected: Remove the absolute paths highlighted in green.)
Alternative Solutions
No configuration or plugin solution has been found yet.
Try to add a 'cwd_relative_path' method and call it before the output path to convert the absolute path to a relative path
Additional context
jakkdl
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature