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

Refactor options_test.dart #3586

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

srawlins
Copy link
Member

We've moved most tests to use test_reflective_loader for improved reusability. This PR migrates the options_test tests to use test_reflective_loader.

It will merge poorly with #3585 but I can handle the merge when it comes to that. 😄


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.


test("'format=md' option generates markdown files", () async {
packagePath = await d.createPackage(
void test_formatEqualMdOptionGeneratesMarkdownFiles() async {
Copy link
Member

Choose a reason for hiding this comment

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

Can we name these more like test_formatOption_md_generatesMarkdownFiles and the one below as test_formatOption_bad_dartDocFailure and the others in a similar fashion where the first test after _ is the option being tested? It's easier to read and categorize :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, great catch! I added some underscores to other test cases after the word Option; nice separation.

@srawlins srawlins merged commit 602e1aa into dart-lang:main Nov 22, 2023
9 checks passed
@srawlins srawlins deleted the refactor-options-test branch November 22, 2023 05:06
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.

2 participants