Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of minitest file paths and file names #95

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

stephsachrajda
Copy link
Contributor

@stephsachrajda stephsachrajda commented Jan 4, 2024

Background

Currently, deprecation toolkit uses class.name.underscore to name the files where it stores the deprecations, which works well in most cases, but means that in the case of subclasses in test files (or typos), the actual files containing the deprecations are hard to find.

The Change

This allows the user to configure the file path/name format for their setup. It would allow folks to use the full file paths if that's easier for them and customize in any way that suits while maintaining the current behaviour as the default.

@ChrisBr
Copy link

ChrisBr commented Jan 4, 2024

The other consideration would be to go the full distance but place it behind a configuration option to allow for an easier transition.

As discussed in person, I would be in favour of this so we can leave the old behaviour (or at least make it possible to restore the old behaviour).

@stephsachrajda stephsachrajda force-pushed the ssach/use-file-path branch 4 times, most recently from 0738865 to db7d784 Compare January 11, 2024 00:50
@stephsachrajda stephsachrajda changed the title Proposal: Use file base name for minitest tests deprecation file paths Allow configuration of minitest file paths and file names Jan 11, 2024
@stephsachrajda stephsachrajda force-pushed the ssach/use-file-path branch 5 times, most recently from 432c15b to 16619ae Compare January 11, 2024 19:59
@stephsachrajda stephsachrajda requested a review from a team January 11, 2024 20:04
@stephsachrajda stephsachrajda merged commit 3cb2e62 into main Jan 15, 2024
47 checks passed
@stephsachrajda stephsachrajda deleted the ssach/use-file-path branch January 15, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants