Skip to content

Deduplicate test helpers in OptionAnalyzer.Test#295

Merged
nojaf merged 1 commit intomainfrom
test-dedup
Mar 23, 2026
Merged

Deduplicate test helpers in OptionAnalyzer.Test#295
nojaf merged 1 commit intomainfrom
test-dedup

Conversation

@Smaug123
Copy link
Copy Markdown
Contributor

@Smaug123 Smaug123 commented Mar 21, 2026

Pulled out of #289 ; we'll want to run the same tests with different analyzer APIs, so here I pull out the bits which will be shared across different tests. Also tightens the test assertions to name the analyzer that we expect to find. Otherwise a no-op refactor; the only semantic change is the tightened assertion about what's in the analyzer list.

Extract shared setup (runtimeTfm, test packages, project options),
source snippets, and assertion helpers into TestHelpers.fs. Use
Does.Contain "OptionAnalyzer" for more specific analyzer assertions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Smaug123 Smaug123 marked this pull request as ready for review March 21, 2026 19:18
@nojaf nojaf merged commit b112309 into main Mar 23, 2026
2 checks passed
@Smaug123 Smaug123 deleted the test-dedup branch March 23, 2026 08:02
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