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

[Groundwork for #1201] Rewrite test descriptions containing meaningful symbols #1242

Merged

Conversation

lawrence-forooghian
Copy link
Collaborator

What does this do?

Rewrites test descriptions so that they don't contain any symbols which, if removed, would change the meaning of the test description.

Does it change the behaviour of the test suite?

No, it's just a refactor.

Why are we doing this?

It’s groundwork for removing the Quick testing framework using an automated migrator tool (#1201). The migrator that I’m writing will convert all symbols in test descriptions to underscores in the emitted method names. This is okay most of the time, but we have a few places where the symbols have meaning, and removing them will change the description of the test. The migrator emits a warning when it thinks this is the case, but it’s up to us to look at this output and decide which ones need changing.

The motivation for this change is that it’s groundwork for removing the
Quick testing framework using an automated migrator tool (#1201). The
migrator that I’m writing will convert all symbols in test descriptions
to underscores in the emitted method names. This is okay most of the
time, but we have a few places where the symbols have meaning, and
removing them will change the description of the test. The migrator
emits a warning when it thinks this is the case, but it’s up to us to
look at this output and decide which ones need changing.
@lawrence-forooghian lawrence-forooghian self-assigned this Nov 30, 2021
@lawrence-forooghian lawrence-forooghian changed the title Rewrite test descriptions containing meaningful symbols [Groundwork for #1201] Rewrite test descriptions containing meaningful symbols Nov 30, 2021
@lawrence-forooghian lawrence-forooghian marked this pull request as ready for review November 30, 2021 18:05
@lawrence-forooghian lawrence-forooghian merged commit c801494 into main Dec 1, 2021
@lawrence-forooghian lawrence-forooghian deleted the 1201-rename-tests-where-symbols-have-meaning branch December 1, 2021 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants