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
Enable razor UTs in-memory compilation #9190
Conversation
…jectConfig(TestContext, ProjectType.Product))
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main code changes look good. I have some comments about the tests.
analyzers/tests/SonarAnalyzer.Test/AnalysisContext/SonarAnalysisContextTest.Register.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.Test/AnalysisContext/SonarAnalysisContextTest.Register.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.Test/Rules/CollectionPropertiesShouldBeReadOnlyTest.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.Test/Rules/AvoidLambdaExpressionInLoopsInBlazorTest.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.Test/Rules/AvoidLambdaExpressionInLoopsInBlazorTest.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.TestFramework.Test/Verification/VerifierTest.cs
Outdated
Show resolved
Hide resolved
....TestFramework/Dependencies/Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.deps.json
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.TestFramework/Dependencies/RazorSourceGenerator.razorencconfig
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.TestFramework/Verification/Verifier.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.TestFramework/Verification/Verifier.cs
Outdated
Show resolved
Hide resolved
Quality Gate passed for 'SonarAnalyzer for .NET'Issues Measures |
Quality Gate passed for '.NET Analyzers parent'Issues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This reverts commit 97af801.
Co-authored-by: Sebastien Marichal <sebastien.marichal@sonarsource.com>
Co-authored-by: Sebastien Marichal <sebastien.marichal@sonarsource.com>
Co-authored-by: Sebastien Marichal <sebastien.marichal@sonarsource.com> # Conflicts: # analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/SymbolReferenceAnalyzerTest.cs # analyzers/tests/SonarAnalyzer.Test/TestCases/Utilities/SymbolReferenceAnalyzer/Razor.razor
Co-authored-by: Sebastien Marichal <sebastien.marichal@sonarsource.com> # Conflicts: # analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/SymbolReferenceAnalyzerTest.cs # analyzers/tests/SonarAnalyzer.Test/TestCases/Utilities/SymbolReferenceAnalyzer/Razor.razor
Fixes #9010