Permalink
Browse files

Added .NET 4.0 tests to NightlyBuild target.

  • Loading branch information...
1 parent a9a35e2 commit 14f99df2b5078684c067abdf9bb41bbf84a9f2df @jkowalski committed Jul 15, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/NLog.proj
View
@@ -203,7 +203,7 @@
<CommonProperties>BuildLabel=$(BuildLabel);BuildVersion=$(BuildVersion)</CommonProperties>
</PropertyGroup>
<MSBuild Projects="$(MSBuildProjectFile)" Targets="DeepClean;Clean;Build;DumpApi;XSD;Documentation;Archive;Installer;NuGetPackage;BuildTests;Web" Properties="Configuration=Release;$(CommonProperties)" />
- <MSBuild Projects="$(MSBuildProjectFile)" Targets="Clean;Build;DumpApi;XSD;Documentation;Archive;Installer;NuGetPackage;BuildTests" Properties="Configuration=Debug;$(CommonProperties)" />
+ <MSBuild Projects="$(MSBuildProjectFile)" Targets="Clean;Build;DumpApi;XSD;Documentation;Archive;Installer;NuGetPackage;BuildTests;RunNightlyTests" Properties="Configuration=Debug;$(CommonProperties)" />
<CallTarget Targets="SourceArchive" />
</Target>
@@ -320,6 +320,16 @@
<Exec Command="$(BaseOutputDirectory)\bin\DeleteTestUsers.cmd" IgnoreExitCode="true" />
</Target>
+ <Target Name="RunNightlyTests">
+ <Exec Command="$(BaseOutputDirectory)\bin\CreateTestUsers.cmd" IgnoreExitCode="true" />
+ <CallTarget Targets="DeleteTrxFiles" />
+ <Exec Command='NLogC.UnitTests.exe' WorkingDirectory="$(BaseOutputDirectory)\bin\$(Configuration)\.NET Framework 4.0\NLogC\x86" />
+ <Exec Command='"$(MSTest10)" /nologo /testcontainer:NLog.UnitTests.dll /resultsfile:TestResults.trx'
+ WorkingDirectory="$(BaseOutputDirectory)\bin\$(Configuration)\.NET Framework 4.0"
+ Condition="Exists('$(MSTest10)')" />
+ <Exec Command="$(BaseOutputDirectory)\bin\DeleteTestUsers.cmd" IgnoreExitCode="true" />
+ </Target>
+
<Target Name="RunComApiTests">
<Exec Command="NLog.ComInteropTest.cmd"
WorkingDirectory="$(BaseOutputDirectory)\bin\$(Configuration)\%(TargetFramework.Identity)"

0 comments on commit 14f99df

Please sign in to comment.