Enable Helix tests for Microsoft.AspNetCore.Mvc.Razor.Extensions.* projects.
- Enabled Helix for: - `Microsoft.AspNetCore.Mvc.Razor.Extensions.Test` - `Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test` - `Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test` - These tests depended on our MVC shim project's deps.json's to exist in the test bin directory during publish. Therefore added an additional target copy over those assets at publish time. - There were some tests that were relying on source positions from a string to match a runtime generated source position. In Helix dll's are built on Windows (string's get compiled with \r\n) and then deployed to potentially non-Windows boxes resulting in mismatches of expectations. To address this I changed the test that had this dependency to dynamically generate the input string. - Our common language test project used to rely on test files being on disk. At some point in the past those test files started being embedded in the assembly but we maintained directory checking logic to ensure various directories existed on disk (no longe required). Changed the logic to not enforce directories to be on disk (they aren't in Helix) and instead only rely on the embedded TestFiles. dotnet/aspnetcore#22100
显示
- src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj 5 个添加, 4 个删除...ft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj
- src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj 9 个添加, 4 个删除...ft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj
- src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/RazorPageDocumentClassifierPassTest.cs 3 个添加, 4 个删除...ns.Version2_X/test/RazorPageDocumentClassifierPassTest.cs
- src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj 9 个添加, 4 个删除...est/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj
- src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/RazorPageDocumentClassifierPassTest.cs 3 个添加, 4 个删除...or.Extensions/test/RazorPageDocumentClassifierPassTest.cs
- src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Language/TestProject.cs 13 个添加, 17 个删除...soft.AspNetCore.Razor.Test.Common/Language/TestProject.cs
想要评论请 注册 或 登录