Skip to content

Allow configuration of minitest file paths and file names#95

Merged
stephsachrajda merged 2 commits intomainfrom
ssach/use-file-path
Jan 15, 2024
Merged

Allow configuration of minitest file paths and file names#95
stephsachrajda merged 2 commits intomainfrom
ssach/use-file-path

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
@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