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

Fix Razor location UTs #9242

Merged
merged 3 commits into from
May 2, 2024
Merged

Fix Razor location UTs #9242

merged 3 commits into from
May 2, 2024

Conversation

CristianAmbrosini
Copy link
Contributor

@CristianAmbrosini CristianAmbrosini commented May 2, 2024

Fix failing UTs on master due to incorrect location on .razor files due to in-memory compilation:

  • Verify_Razor
  • Verify_RazorExpressions_Locations
  • Verify_RazorWithAdditionalLocation

@github-actions github-actions bot added this to In progress in Best Kanban May 2, 2024
@github-actions github-actions bot moved this from In progress to Review in progress in Best Kanban May 2, 2024
Copy link
Contributor

@Tim-Pohlmann Tim-Pohlmann left a comment

Choose a reason for hiding this comment

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

The files need renaming. Looks good otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

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

The file should be called Dummy.SecondaryLocation.CSharp10.razor to follow our naming scheme.

Copy link
Contributor

Choose a reason for hiding this comment

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

Rename to DummyExpressions.CSharp10.razor

.WithAdditionalFilePath(AnalysisScaffolding.CreateSonarProjectConfig(TestContext, ProjectType.Product))
.Verify();

#if NET
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required to not fail in the pipeline?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, all razor tests are already within a #if NET directive, so we can remove them

@github-actions github-actions bot moved this from Review in progress to In progress in Best Kanban May 2, 2024
@github-actions github-actions bot moved this from In progress to Review in progress in Best Kanban May 2, 2024
Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed for 'Sonar .NET Java Plugin'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed for 'SonarAnalyzer for .NET'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@Tim-Pohlmann Tim-Pohlmann left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions github-actions bot moved this from Review in progress to Review approved in Best Kanban May 2, 2024
@CristianAmbrosini CristianAmbrosini merged commit 7e0dada into master May 2, 2024
29 checks passed
Best Kanban automation moved this from Review approved to Validate Peach May 2, 2024
@CristianAmbrosini CristianAmbrosini deleted the cristian/RazorUTsFix branch May 2, 2024 15:09
@CristianAmbrosini CristianAmbrosini moved this from Validate Peach to Done in Best Kanban May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Best Kanban
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants