Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c975074

Browse files
committed
Put the test logs somewhere that CI can find them
1 parent 815a884 commit c975074

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
packages/
33
_NCrunch_GitHub.Unity
44
*.user
5-
.DS_Store
5+
.DS_Store
6+
build/
7+
TestResult.xml

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ test:
5252
- TimeSensitive
5353
artifacts:
5454
- path: unity\TestProject\Assets\Editor\*.dll
55-
- path: unity\TestProject\Assets\Editor\*.pdb
55+
- path: unity\TestProject\Assets\Editor\*.pdb
56+
- path: build\*.log

src/tests/IntegrationTests/IntegrationTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,19 @@
1212
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
15+
<OutputPath>$(SolutionDir)build\$(AssemblyName)</OutputPath>
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<DebugSymbols>true</DebugSymbols>
1819
<DebugType>full</DebugType>
1920
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
2424
</PropertyGroup>
2525
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2626
<DebugType>pdbonly</DebugType>
2727
<Optimize>true</Optimize>
28-
<OutputPath>bin\Release\</OutputPath>
2928
<DefineConstants>TRACE</DefineConstants>
3029
<ErrorReport>prompt</ErrorReport>
3130
<WarningLevel>4</WarningLevel>

src/tests/IntegrationTests/SetupFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public void Setup()
1212
{
1313
Logging.TracingEnabled = true;
1414

15-
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-integration-tests.log"), new ConsoleLogAdapter());
15+
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"..\\{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-integration-tests.log"));
1616
}
1717
}
1818
}

src/tests/TaskSystemIntegrationTests/TaskSystem.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<TargetFrameworkProfile />
1515
<NuGetPackageImportStamp>
1616
</NuGetPackageImportStamp>
17+
<OutputPath>$(SolutionDir)build\$(AssemblyName)</OutputPath>
1718
</PropertyGroup>
1819
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1920
<DebugSymbols>true</DebugSymbols>
2021
<DebugType>full</DebugType>
2122
<Optimize>false</Optimize>
22-
<OutputPath>bin\Debug\</OutputPath>
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
@@ -28,7 +28,6 @@
2828
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2929
<DebugType>pdbonly</DebugType>
3030
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
3231
<DefineConstants>TRACE</DefineConstants>
3332
<ErrorReport>prompt</ErrorReport>
3433
<WarningLevel>4</WarningLevel>
@@ -40,7 +39,7 @@
4039
<Private>True</Private>
4140
</Reference>
4241
<Reference Include="NSubstitute, Version=1.10.0.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL">
43-
<HintPath>..\..\..\packages\NSubstitute.1.10.0.0\lib\net35\NSubstitute.dll</HintPath>
42+
<HintPath>$(SolutionDir)\packages\NSubstitute.1.10.0.0\lib\net35\NSubstitute.dll</HintPath>
4443
<Private>True</Private>
4544
</Reference>
4645
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">

src/tests/TaskSystemIntegrationTests/Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public BaseTest()
3030
public void OneTimeSetup()
3131
{
3232
GitHub.Unity.Guard.InUnitTestRunner = true;
33-
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-tasksystem-tests.log"));
33+
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"..\\{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-tasksystem-tests.log"));
3434
//Logging.TracingEnabled = true;
3535
TaskManager = new TaskManager();
3636
var syncContext = new ThreadSynchronizationContext(Token);

src/tests/UnitTests/SetUpFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public void SetUp()
1212
{
1313
//Logging.TracingEnabled = true;
1414

15-
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-unit-tests.log"), new ConsoleLogAdapter());
15+
Logging.LogAdapter = new MultipleLogAdapter(new FileLogAdapter($"..\\{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}-unit-tests.log"));
1616
}
1717
}
1818
}

src/tests/UnitTests/UnitTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<TargetFrameworkProfile />
16+
<OutputPath>$(SolutionDir)build\$(AssemblyName)</OutputPath>
1617
</PropertyGroup>
1718
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1819
<PlatformTarget>AnyCPU</PlatformTarget>
1920
<DebugSymbols>true</DebugSymbols>
2021
<DebugType>full</DebugType>
2122
<Optimize>false</Optimize>
22-
<OutputPath>bin\Debug\</OutputPath>
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
@@ -29,7 +29,6 @@
2929
<PlatformTarget>AnyCPU</PlatformTarget>
3030
<DebugType>pdbonly</DebugType>
3131
<Optimize>true</Optimize>
32-
<OutputPath>bin\Release\</OutputPath>
3332
<DefineConstants>TRACE</DefineConstants>
3433
<ErrorReport>prompt</ErrorReport>
3534
<WarningLevel>4</WarningLevel>

0 commit comments

Comments
 (0)