Hi,
I'm working with an MVC project. Some of the razor views have some markup errors here and there, but Visual Studio has no problems building it anyway (no warnings, no errors, and no informational messages) and there are no issues on the front-end. However, NCrunch cannot build the project until I fix the markup issues on the razor views.
When I click on a failing project in the NCrunch Tests window, I see:
Quote:
Views\Shared\Event.cshtml (38, 8): Helper blocks cannot be nested within each other.
Views\Shared\Event.cshtml (81, 79): The "br" element was not closed. All elements must be either self-closing or have a matching end tag.
Views\Shared\Event.cshtml (78, 3): The "p" element was not closed. All elements must be either self-closing or have a matching end tag.
Views\Shared\Event.cshtml (33, 4): The "br" element was not closed. All elements must be either self-closing or have a matching end tag.
I am aware I can just go in and fix the markup, but some of the markup is pre-compiled by our designers.
I have no unit tests involving razor views, and there are no plans to add any in the future. I'd like to know why NCrunch can't just move past these errors.
Thanks,
Ben