Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Add argument to control the default test fragment path#77

Merged
hendrikvanantwerpen merged 1 commit into
mainfrom
default-fragment-path
Apr 22, 2022
Merged

Add argument to control the default test fragment path#77
hendrikvanantwerpen merged 1 commit into
mainfrom
default-fragment-path

Conversation

@hendrikvanantwerpen
Copy link
Copy Markdown
Contributor

Test files that do not contain --- path: XYZ --- headers consist of a single test fragment.
Currently we use the source as the path of this fragment.
This may not always be desriable, e.g. we may want to use a path relative to a test root instead.
This PR adds an argument to Test::from_source to pass the path to be used for this single fragment.

@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Apr 8, 2022
@hendrikvanantwerpen hendrikvanantwerpen requested a review from a team April 8, 2022 15:18
Base automatically changed from output-control to main April 21, 2022 10:56
Copy link
Copy Markdown

@rewinfrey rewinfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me 👍

@hendrikvanantwerpen hendrikvanantwerpen merged commit b68fb21 into main Apr 22, 2022
@hendrikvanantwerpen hendrikvanantwerpen deleted the default-fragment-path branch April 22, 2022 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants