From: <br...@us...> - 2009-07-16 20:57:04
|
Revision: 528 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=528&view=rev Author: brus07 Date: 2009-07-16 20:56:59 +0000 (Thu, 16 Jul 2009) Log Message: ----------- Added Test target. Create sample test for checking of work. Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/go.bat nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj nera/projects/nera.tester.runner/trunk/test/Class1.cs nera/projects/nera.tester.runner/trunk/xunit.msbuild Added Paths: ----------- nera/projects/nera.tester.runner/trunk/runTestHardCode.bat nera/projects/nera.tester.runner/trunk/test/Properties/AssemblyInfo.cs nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild Modified: nera/projects/nera.tester.runner/trunk/go.bat =================================================================== --- nera/projects/nera.tester.runner/trunk/go.bat 2009-07-16 20:50:46 UTC (rev 527) +++ nera/projects/nera.tester.runner/trunk/go.bat 2009-07-16 20:56:59 UTC (rev 528) @@ -4,7 +4,7 @@ :Usage echo usage: build [target] -echo where: target = one of "Clean", "Build" +echo where: target = one of "Clean", "Build", "Test" goto End :NoBuildResults Modified: nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-16 20:50:46 UTC (rev 527) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-16 20:56:59 UTC (rev 528) @@ -28,12 +28,17 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> + <Reference Include="nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\Tools\nunit-v2.2.8\nunit.framework.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <Compile Include="test\Class1.cs" /> + <Compile Include="test\Properties\AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="nera.tester.runner.csproj"> @@ -41,10 +46,6 @@ <Name>nera.tester.runner</Name> </ProjectReference> </ItemGroup> - <ItemGroup> - <Folder Include="Properties\" /> - <Folder Include="test\Properties\" /> - </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. Added: nera/projects/nera.tester.runner/trunk/runTestHardCode.bat =================================================================== --- nera/projects/nera.tester.runner/trunk/runTestHardCode.bat (rev 0) +++ nera/projects/nera.tester.runner/trunk/runTestHardCode.bat 2009-07-16 20:56:59 UTC (rev 528) @@ -0,0 +1,2 @@ +echo Running unit tests (nera.tester.runner.test) +..\..\..\Tools\nunit-v2.2.8\bin\nunit-console.exe /nologo /labels bin\Release\nera.tester.runner.test.dll \ No newline at end of file Modified: nera/projects/nera.tester.runner/trunk/test/Class1.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/test/Class1.cs 2009-07-16 20:50:46 UTC (rev 527) +++ nera/projects/nera.tester.runner/trunk/test/Class1.cs 2009-07-16 20:56:59 UTC (rev 528) @@ -1,8 +1,15 @@ -using System; +using NUnit.Framework; namespace Nera.Tester.Runner.Test { + [TestFixture] public class Class1 { + [Test] + public void Test1() + { + Assert.AreEqual(4, 4); + } + } } Added: nera/projects/nera.tester.runner/trunk/test/Properties/AssemblyInfo.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/test/Properties/AssemblyInfo.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/test/Properties/AssemblyInfo.cs 2009-07-16 20:56:59 UTC (rev 528) @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("nera.tester.runner.test")] +[assembly: AssemblyDescription("http://acm.lviv.ua")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("nera.tester.runner.test")] +[assembly: AssemblyCopyright("Copyright © AcmContester 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("80d03fd6-3218-46cc-8dcc-1de5f7c7fbf5")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyFileVersion("1.0.0.0")] Modified: nera/projects/nera.tester.runner/trunk/xunit.msbuild =================================================================== --- nera/projects/nera.tester.runner/trunk/xunit.msbuild 2009-07-16 20:50:46 UTC (rev 527) +++ nera/projects/nera.tester.runner/trunk/xunit.msbuild 2009-07-16 20:56:59 UTC (rev 528) @@ -22,4 +22,10 @@ Properties="Configuration=$(BuildType)"/> </Target> + <Target Name="Test" DependsOnTargets="Build"> + <MSBuild + Projects="xunit.tests.msbuild" + Properties="BuildType=$(BuildType)" /> + </Target> + </Project> \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild =================================================================== --- nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild (rev 0) +++ nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild 2009-07-16 20:56:59 UTC (rev 528) @@ -0,0 +1,8 @@ +<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> + + + <Target Name="Test"> + <Exec Command="runTestHardCode.bat" /> + </Target> + +</Project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |