Skip to content

Commit

Permalink
Reintroduce tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini committed Nov 26, 2024
1 parent 1a581ba commit 95f6582
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,22 @@ void testXamlCompilation() throws IOException {
assertThat(TestUtils.getMeasureAsInteger("XamarinApplication:XamarinApplication", "lines", ORCHESTRATOR)).isEqualTo(52);
}

@Test
void testRazorCompilationNet9WithoutSourceGenerators() throws IOException {
assumeTrue(TestUtils.getMsBuildPath(ORCHESTRATOR).toString().contains("2022")); // We can't build without MsBuild17
String projectName = "RazorWebApplication.net9.withoutSourceGenerators";
assertProjectFileContains(projectName, "<UseRazorSourceGenerator>false</UseRazorSourceGenerator>");
validateRazorProject(projectName);
}

@Test
void testRazorCompilationNet9WithSourceGenerators() throws IOException {
assumeTrue(TestUtils.getMsBuildPath(ORCHESTRATOR).toString().contains("2022")); // We can't build without MsBuild17
String projectName = "RazorWebApplication.net9.withSourceGenerators";
assertProjectFileContains(projectName, "<UseRazorSourceGenerator>true</UseRazorSourceGenerator>");
validateRazorProject(projectName);
}

@Test
void testEsprojVueWithBackend() throws IOException {
// SonarQube 10.8 changed the way the numbers are reported.
Expand Down

0 comments on commit 95f6582

Please sign in to comment.