Skip to content

Instantly share code, notes, and snippets.

Patrick Lioi plioi

  • Austin, TX
Block or report user

Report or block plioi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BasicUsage
Fixie.Console.exe path\to\your\Tests.dll --category Slow
View Optional Reports
Fixie.Console.exe path\to\your\Tests.dll --category Slow --fixie:NUnitXml TestResult.xml
Fixie.Console.exe path\to\your\Tests.dll --category Slow --fixie:XUnitXml TestResult.xml
View nunit.xml
<?xml version="1.0" encoding="utf-8"?>
<test-results date="2014-01-31" time="21:21:25" name="Results" total="153" failures="0" not-run="0">
<test-suite success="true" name="C:\dev\personal\fixie\src\Fixie.Tests\bin\Release\Fixie.Tests.dll" time="0.685">
<results>
<test-suite success="true" name="Fixie.Conventions.DefaultConvention" time="0.685">
<results>
<test-suite name="Fixie.Tests.Behaviors.ExecuteCasesTests" success="true" time="0.008">
<results>
<test-case name="Fixie.Tests.Behaviors.ExecuteCasesTests.ShouldPerformCaseExecutionBehaviorForAllGivenCases" executed="true" success="true" time="0.008" />
</results>
View xunit.xml
<?xml version="1.0" encoding="utf-8"?>
<assembly name="C:\dev\personal\fixie\src\Fixie.Tests\bin\Release\Fixie.Tests.dll" run-date="2014-01-31" run-time="21:21:25" configFile="C:\dev\personal\fixie\build\Fixie.Console.exe.Config" time="0.685" total="153" passed="153" failed="0" skipped="0" environment="32-bit .NET v4.0.30319" test-framework="fixie 0.0.1.0">
<class time="0.008" name="Fixie.Tests.Behaviors.ExecuteCasesTests" total="1" passed="1" failed="0" skipped="0">
<test name="Fixie.Tests.Behaviors.ExecuteCasesTests.ShouldPerformCaseExecutionBehaviorForAllGivenCases" type="Fixie.Tests.Behaviors.ExecuteCasesTests" method="ShouldPerformCaseExecutionBehaviorForAllGivenCases" result="pass" time="0.008" />
</class>
<class time="0.001" name="Fixie.Tests.CaseExecutionTests" total="2" passed="2" failed="0" skipped="0">
<test name="Fixie.Tests.CaseExecutionTests.ShouldBeAssociatedWithCase" type="Fixie.Tests.CaseExecutionTests" method="ShouldBeAssociatedWithCase" result="pass" time="0.000" />
<test
View Listener.cs
public interface Listener
{
void AssemblyStarted(Assembly assembly);
void CaseSkipped(SkipResult result);
void CasePassed(PassResult result);
void CaseFailed(FailResult result);
void AssemblyCompleted(Assembly assembly, AssemblyResult result);
}
View FailingTests.cs
using Hypothetical.Assertion.Library;
public class CalculatorTests
{
readonly Calculator calculator;
public CalculatorTests()
{
calculator = new Calculator();
}
View VerboseDefaultOutput
Test 'CalculatorTests.ShouldAdd' failed: Hypothetical.Assertion.Library.AssertionException
Expected 999 but was 5.
Conventions\DefaultConvention.cs(10,0): at Hypothetical.Assertion.Library.Assert.AreEqual(Int32 expected, Int32 actual)
CalculatorTests.cs(14,0): at CalculatorTests.ShouldAdd()
Test 'CalculatorTests.ShouldSubtract' failed: Hypothetical.Assertion.Library.AssertionException
Expected 999 but was 2.
Conventions\DefaultConvention.cs(10,0): at Hypothetical.Assertion.Library.Assert.AreEqual(Int32 expected, Int32 actual)
CalculatorTests.cs(19,0): at CalculatorTests.ShouldSubtract()
View CustomConvention.cs
public class CustomConvention : Convention
{
public CustomConvention()
{
Classes
.NameEndsWith("Tests");
Methods
.Where(method => method.IsVoid());
View FilteredOutput
Test 'CalculatorTests.ShouldAdd' failed:
Expected 999 but was 5.
CalculatorTests.cs(14,0): at CalculatorTests.ShouldAdd()
Test 'CalculatorTests.ShouldSubtract' failed:
Expected 999 but was 2.
CalculatorTests.cs(19,0): at CalculatorTests.ShouldSubtract()
View AssertionLibrary.cs
namespace Hypothetical.Assertion.Library
{
public static class Assert
{
public static void AreEqual(int expected, int actual)
{
if (expected != actual)
throw new AssertionException(String.Format("Expected {0} but was {1}.", expected, actual));
}
}
You can’t perform that action at this time.