-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ReferenceTest containing duplicate test case name. Adds improved…
… error handling for discoverer so a duplicate testcase name error can be logged.
- Loading branch information
1 parent
dd04bc6
commit 9fed124
Showing
13 changed files
with
190 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
ReferenceTests/MSBuild/Projects/Catch_Testset04/Catch_Testset04.vcxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\Catch2Unittest.targets" /> | ||
<PropertyGroup Label="Globals"> | ||
<RootNamespace>Catch_Testset04</RootNamespace> | ||
<ProjectTypeGuids>{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}</ProjectTypeGuids> | ||
<ProjectGuid>{6F30DB9F-419F-4EAC-AAFC-17C97C94DA9A}</ProjectGuid> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\..\..\Src\Catch2\Catch_Testset04\UT_Tests01.cpp" /> | ||
<ClCompile Include="..\..\..\Src\Catch2\main.cpp" /> | ||
</ItemGroup> | ||
</Project> |
19 changes: 19 additions & 0 deletions
19
ReferenceTests/MSBuild/Projects/Catch_Testset04/Catch_Testset04.vcxproj.filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="Files"> | ||
<UniqueIdentifier>{e9f92384-33de-4567-ac81-601cc1c65521}</UniqueIdentifier> | ||
</Filter> | ||
<Filter Include="Files\Catch"> | ||
<UniqueIdentifier>{36abadce-429e-4b62-9e22-98a0b1ba6ed1}</UniqueIdentifier> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\..\..\Src\Catch2\main.cpp"> | ||
<Filter>Files\Catch</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\..\..\Src\Catch2\Catch_Testset04\UT_Tests01.cpp"> | ||
<Filter>Files</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** Basic Info ** | ||
Copyright: 2018 Johnny Hendriks | ||
Author : Johnny Hendriks | ||
Year : 2018 | ||
Project: VSTestAdapter for Catch2 | ||
Licence: MIT | ||
Notes: None | ||
** Basic Info **/ | ||
|
||
/************ | ||
* Includes * | ||
************/ | ||
|
||
// Catch2 | ||
#include <catch.hpp> | ||
|
||
|
||
/************** | ||
* Start code * | ||
**************/ | ||
|
||
namespace CatchTestset01 | ||
{ | ||
TEST_CASE( "Testset04.Tests01. Duplicate", "[Passing]" ) | ||
{ | ||
int x = 42; | ||
int y = 42; | ||
|
||
INFO("basic"); | ||
|
||
CHECK( x == y ); | ||
CHECK( y == x ); | ||
|
||
REQUIRE( x <= y ); | ||
REQUIRE( y >= x ); | ||
} | ||
|
||
TEST_CASE( "Testset04.Tests01. Duplicate", "[Failing]" ) | ||
{ | ||
int x = 42; | ||
int y = 47; | ||
|
||
INFO("basic"); | ||
|
||
CHECK( x == y ); | ||
CHECK( y == x ); | ||
|
||
REQUIRE( x <= y ); | ||
REQUIRE( y >= x ); | ||
} | ||
|
||
} // End namespace: CatchTestset01 | ||
|
||
/************ | ||
* End code * | ||
************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters