Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from netspiri/master
Browse files Browse the repository at this point in the history
initial version
  • Loading branch information
guwirth committed Jul 30, 2015
2 parents 061a1c2 + 3d7551c commit 2ec6fd6
Show file tree
Hide file tree
Showing 278 changed files with 248,425 additions and 9 deletions.
59 changes: 59 additions & 0 deletions BoostTestAdapter.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoostTestAdapter", "BoostTestAdapter\BoostTestAdapter.csproj", "{BC4B3BED-9241-4DD6-8070-A9B66DFC08C1}"
ProjectSection(ProjectDependencies) = postProject
{EB0051E3-1DDA-418C-ABAF-C1DA5339114C} = {EB0051E3-1DDA-418C-ABAF-C1DA5339114C}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoostTestPlugin", "BoostTestPlugin\BoostTestPlugin.csproj", "{7918D2BE-590C-4F1B-9A72-9F1CE4640AA9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioAdapter", "VisualStudioAdapter\VisualStudioAdapter.csproj", "{62347CC7-C839-413D-A7CE-598409F6F15B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudio2012Adapter", "VisualStudio2012Adapter\VisualStudio2012Adapter.csproj", "{30ECC867-CE89-425F-B452-7A8A320F727D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudio2013Adapter", "VisualStudio2013Adapter\VisualStudio2013Adapter.csproj", "{82DF0AEB-582A-4B38-96FC-AAEE773BEAFE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudio2015Adapter", "VisualStudio2015Adapter\VisualStudio2015Adapter.csproj", "{EB0051E3-1DDA-418C-ABAF-C1DA5339114C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoostTestAdapterNunit", "BoostTestAdapterNunit\BoostTestAdapterNunit.csproj", "{FE58A67C-D313-46FD-B8F3-F80383EE5FD1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BC4B3BED-9241-4DD6-8070-A9B66DFC08C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC4B3BED-9241-4DD6-8070-A9B66DFC08C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC4B3BED-9241-4DD6-8070-A9B66DFC08C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC4B3BED-9241-4DD6-8070-A9B66DFC08C1}.Release|Any CPU.Build.0 = Release|Any CPU
{7918D2BE-590C-4F1B-9A72-9F1CE4640AA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7918D2BE-590C-4F1B-9A72-9F1CE4640AA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7918D2BE-590C-4F1B-9A72-9F1CE4640AA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7918D2BE-590C-4F1B-9A72-9F1CE4640AA9}.Release|Any CPU.Build.0 = Release|Any CPU
{62347CC7-C839-413D-A7CE-598409F6F15B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62347CC7-C839-413D-A7CE-598409F6F15B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62347CC7-C839-413D-A7CE-598409F6F15B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62347CC7-C839-413D-A7CE-598409F6F15B}.Release|Any CPU.Build.0 = Release|Any CPU
{30ECC867-CE89-425F-B452-7A8A320F727D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30ECC867-CE89-425F-B452-7A8A320F727D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30ECC867-CE89-425F-B452-7A8A320F727D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30ECC867-CE89-425F-B452-7A8A320F727D}.Release|Any CPU.Build.0 = Release|Any CPU
{82DF0AEB-582A-4B38-96FC-AAEE773BEAFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82DF0AEB-582A-4B38-96FC-AAEE773BEAFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82DF0AEB-582A-4B38-96FC-AAEE773BEAFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82DF0AEB-582A-4B38-96FC-AAEE773BEAFE}.Release|Any CPU.Build.0 = Release|Any CPU
{EB0051E3-1DDA-418C-ABAF-C1DA5339114C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EB0051E3-1DDA-418C-ABAF-C1DA5339114C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EB0051E3-1DDA-418C-ABAF-C1DA5339114C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EB0051E3-1DDA-418C-ABAF-C1DA5339114C}.Release|Any CPU.Build.0 = Release|Any CPU
{FE58A67C-D313-46FD-B8F3-F80383EE5FD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FE58A67C-D313-46FD-B8F3-F80383EE5FD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FE58A67C-D313-46FD-B8F3-F80383EE5FD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FE58A67C-D313-46FD-B8F3-F80383EE5FD1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
27 changes: 27 additions & 0 deletions BoostTestAdapter/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<log4net debug="false">
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<file type="log4net.Util.PatternString" value="%property{LogFilePath}" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="3" />
<maximumFileSize value="100KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d [%property{pid}] %-5p %m%n" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="RollingLogFileAppender" />
</root>
</log4net>
</configuration>
57 changes: 57 additions & 0 deletions BoostTestAdapter/Boost/Results/BoostStandardError.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using System.IO;
using BoostTestAdapter.Boost.Results.LogEntryTypes;

namespace BoostTestAdapter.Boost.Results
{
/// <summary>
/// Standard Error as emitted by Boost Test executables
/// </summary>
public class BoostStandardError : BoostTestResultOutputBase
{
/// <summary>
/// Constructor accepting a path to the external file
/// </summary>
/// <param name="path">The path to an external file. File will be opened on construction.</param>
public BoostStandardError(string path)
: base(path)
{
}

/// <summary>
/// Constructor accepting a stream to the file contents
/// </summary>
/// <param name="stream">The file content stream.</param>
public BoostStandardError(Stream stream)
: base(stream)
{
}

#region BoostTestResultOutputBase

public override void Parse(TestResultCollection collection)
{
Utility.Code.Require(collection, "collection");

string err = null;

using (StreamReader reader = new StreamReader(this.InputStream))
{
err = reader.ReadToEnd();
}

if (!string.IsNullOrEmpty(err))
{
// Attach the stderr output to each TestCase result in the collection
// since we cannot distinguish to which TestCase (in case multiple TestCases are registered)
// the output is associated with.
foreach (TestResult result in collection)
{
// Consider the whole standard error contents as 1 entry.
result.LogEntries.Add(new LogEntryStandardErrorMessage(err));
}
}
}

#endregion BoostTestResultOutputBase
}
}
Loading

0 comments on commit 2ec6fd6

Please sign in to comment.