File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ public abstract class AbstractIntegrationTest : AbstractIdeIntegrationTest
33
33
34
34
public override async Task InitializeAsync ( )
35
35
{
36
+ // Not sure why the module initializer doesn't seem to work for integration tests
37
+ ThrowingTraceListener . Initialize ( ) ;
38
+
36
39
await base . InitializeAsync ( ) ;
37
40
}
38
41
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public async Task<ILogger> SetupIntegrationTestLoggerAsync(ITestOutputHelper tes
33
33
// We can't remove logging providers, so we just keep track of ours so we can make sure it points to the right test output helper
34
34
if ( _testLoggerProvider is null )
35
35
{
36
- _testLoggerProvider = new TestOutputLoggerProvider ( testOutputHelper , LogLevel . Warning ) ;
36
+ _testLoggerProvider = new TestOutputLoggerProvider ( testOutputHelper ) ;
37
37
logger . AddLoggerProvider ( _testLoggerProvider ) ;
38
38
}
39
39
else
Original file line number Diff line number Diff line change 20
20
<PrivateAssets >All</PrivateAssets >
21
21
<CopyLocalSatelliteAssemblies >False</CopyLocalSatelliteAssemblies >
22
22
</ProjectReference >
23
+ <ProjectReference Include =" ..\..\src\Microsoft.VisualStudio.RazorExtension\Microsoft.VisualStudio.RazorExtension.csproj" >
24
+ <PrivateAssets >All</PrivateAssets >
25
+ <ReferenceOutputAssembly >false</ReferenceOutputAssembly >
26
+ <CopyLocalSatelliteAssemblies >False</CopyLocalSatelliteAssemblies >
27
+ </ProjectReference >
23
28
<ProjectReference Include =" ..\..\src\RazorDeployment\RazorDeployment.csproj" Private =" False" Condition =" '$(BuildDependencyVsix)' == 'true'" >
24
29
<PrivateAssets >All</PrivateAssets >
25
30
<ReferenceOutputAssembly >false</ReferenceOutputAssembly >
45
50
import the package ourselves, but as an implicit definition to stop Nuget complaining.
46
51
TL;DR: MSBuild was designed to cause pain.
47
52
-->
48
- <PackageReference Include =" xunit.runner.console" Version =" $(XUnitRunnerConsoleVersion)" IsImplicitlyDefined =" true" PrivateAssets =" all" Publish =" true" />
49
- <PackageReference Include =" xunit.runner.visualstudio" Version =" $(XUnitRunnerVisualStudioVersion)" IsImplicitlyDefined =" true" PrivateAssets =" all" Publish =" true" />
53
+ <PackageReference Include =" xunit.runner.console" Version =" $(XUnitRunnerConsoleVersion)" IsImplicitlyDefined =" true" PrivateAssets =" all" Publish =" true" />
54
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" $(XUnitRunnerVisualStudioVersion)" IsImplicitlyDefined =" true" PrivateAssets =" all" Publish =" true" />
50
55
</ItemGroup >
51
56
52
57
<ItemGroup >
You can’t perform that action at this time.
0 commit comments