-
Notifications
You must be signed in to change notification settings - Fork 277
Conversation
Hi @natemcmaster, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Is that only failing on desktop? |
Actually, the entire .NET Core test run is failing:
The error I mentioned is only desktop...as far as I can tell |
Try disabling shadow copy on test runs. The TagHelper Assembly.Load is probably failing due to it. |
I tried that. Still fails 😕 |
Grab the latest vstest bits and update your host locally. It'll split out more information as to why it's failing to find tests. |
I have all but 16 tests passing now. On both .NET Framework and .NET Core, all failing tests have this error:
|
Did it pass in project.json land? I'm curious if @rynowak's recent conversion to use new Razor caused this. |
Yes, it passes in project.json. Does razor rely on Assembly.GetEntryAssembly to locate anything? This is one of the things that changed with xunit.runner.visualstudio from dotnet-test-xunit |
I believe we indirectly depend on it via I'm not familiar with how Entropy runs their tests but if it's anything like MVC you may need to do the following to ensure |
Brilliant! That little target to copy deps files fixed it. I'll add to these functional tests. Do you have an issue tracking the issue the removal of this workaround? |
Remove wip label. Should be ready to merge now. |
Not a workaround. It was a by design break. Before it would embed the deps.json in each of the dependent dll's so |
Oh. How many people are actually doing functional tests with razor? Won't they all hit this now? |
We should be able to revert this entire commit when external issues are fixed
c2c4676
to
cbd95ba
Compare
@@ -0,0 +1,21 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> |
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.
Not Sdk.Web?
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.
It's at actually not a web project. It only has web.config because it's showing how to use configuration to read xml.
@@ -0,0 +1,21 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> |
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.
Ditto question about the sdk.web. Mostly just asking because of the Content include on web.config
@@ -0,0 +1 @@ | |||
wwwroot/lib/ |
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.
Curious: Why'd need to be added in the new world?
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.
nothing changed. I was just tired of seeing a bunch of files installed from bower as pending changes in git.
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Update="wwwroot\**\*;Views\**\*;appsettings.json;web.config" CopyToOutputDirectory="PreserveNewest" /> |
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.
Can remove 😄
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0-msbuild3-final" /> |
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.
version
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="resources\*.*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" /> |
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.
Need the excludes?
<TargetFrameworks>netcoreapp1.1;net451</TargetFrameworks> | ||
<DefineConstants>$(DefineConstants);__RemoveThisBitTo__GENERATE_BASELINES</DefineConstants> | ||
<!-- set explicitly because some tests depend on this --> | ||
<RootNamespace>FunctionalTests</RootNamespace> |
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.
O_o?
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.
Affects the name of the embedded resources.
test/FunctionalTests/XunitLogger.cs
Outdated
private readonly string _categoryName; | ||
|
||
public XunitLogger(ITestOutputHelper output, string categoryName) | ||
{; |
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.
lawl semi-colon
|
||
namespace EntropyTests | ||
{ | ||
public class XunitLogger : ILogger, IDisposable |
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.
This might not be needed with the latest XUnit. They're much more verbose.
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.
Still helps us a lot because the tests that deploy a server produce lots of console output. It's better to have this captured by xunit since console.writeline interleaves different tests.
|
||
namespace EntropyTests | ||
{ | ||
class XunitLoggerProvider : ILoggerProvider |
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.
public is your friend
Yup, it's an odd way to do it though. We're taking a dependency on sample apps and then testing them in memory instead of individually publishing them in their own context. |
⌚️ on breaking changes from localization to make it through CI |
Passes locally, not on CI for reasons I don't understand. Will check again on Monday. |
<ItemGroup> | ||
<EmbeddedResource Include="resources\**\*" /> | ||
<Content Include="nginx.conf" CopyToOutputDirectory="PreserveNewest" /> | ||
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" /> |
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.
Good to know about this guy. I didn't 😄
🔔 tests passing, ready to merge. |
As long as its usable in VS. |
Issues:
TODO:
Tag helper tests are failingResolved.The test app that is being run builds, publishes, and runs just fine.
Any ideas @NTaylorMullen ?
Resolves #193