Hi,
I've
stumbled upon another problem with ASP.NET Core integration test. This time copying the Razor Page .Views.dll assembly is going wrong.
ContextIn this case, I'm using Razor Pages, and testing them with the
ASP.NET Core integration tests. I've reproduced the issue on this repo:
https://github.com/tiesm...r/ReproduceNCrunchBug2. When I run this using other tooling, then the tests in UnitTest1 succeeds, however, when I run it from NCrunch it fails with a 404. This is caused because the assembly ReproduceNCrunchBug2.Views.dll is not copied to the integration test output path (as opposed to the main web dll).
I've played a bit with the settings, like enabling copy referenced assemblies to the workspace, as well as changed the instrumentation mode from default to optimized (default still goes to legacy, if I'm not mistaken; great post BTW!!!).
Steps to reproduce:See the repo:
https://github.com/tiesm...er/ReproduceNCrunchBug2
Expected result:The test returns 200.
Actual result:The Razor page for the index is not found, so the framework returns a 404.
Version Details:
- NCrunch: 4.2.0.7
- VS: 2019 16.4.3
- .NET Core 3.1.1
Your help is greatly appreciated :)