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

Share formatting tests between cohosting and LSP server #11264

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

davidwengier
Copy link
Contributor

@davidwengier davidwengier commented Nov 29, 2024

Fixes #11235

This PR shares all document and range formatting tests between cohosting and the existing LSP server tests. It also correctly represents the actual test coverage of the LSP server tests by splitting out line ending and fuse into test cases. This means cohost goes from 4 test cases to 540. Not a bad increase.

Commit-at-a-time tells the story, but honestly, if you can ignore the moves of all of the tests (which are purely mechanical I promise) it's probably easier not to bother.

Language server tests look like this:
image

Cohosting tests can look as awesome as this:
image

These don't exist in cohosting, so can't be shared
On my machine this caused 0 difference in test time, and XUnit fixtures seem at odds with creating custom test discoverers, which I want to do to add fuse testing to cohosting.
This commit was purely mechanical, no changes to any test inputs or outputs.
The old file name differentiation made no sense, and its easier to share a single file.
RazorLSPOptions doesn't make sense in cohosting
This makes the test count between the two systems the same, for easy validation that we're doing the right thing
My assumption at the start, that it would be incompatible, was incorrect.
@davidwengier davidwengier requested review from a team as code owners November 29, 2024 03:15
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.

Share formatting tests between cohosting and non-cohosting
1 participant