Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
#17 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unickq committed Nov 21, 2018
1 parent 351e31e commit 4612446
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 1.0.4
version: 1.0.5

environment:
nugetVersion: 1.0.4
nugetVersion: 1.0.5

init:
- ps: Update-AppveyorBuild -Version $env:nugetVersion
Expand Down Expand Up @@ -35,6 +35,6 @@ for:
branches:
only:
- develop
version: 1.0.4-beta{build}
version: 1.0.6-beta{build}
environment:
nugetVersion: 1.0.4-beta$(APPVEYOR_BUILD_NUMBER)
nugetVersion: 1.0.6-beta$(APPVEYOR_BUILD_NUMBER)
7 changes: 4 additions & 3 deletions src/Core/AllureNUnitHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,15 @@ private void StopTestCase()
{
UpdateTestDataFromAttributes();
for (var i = 0; i < _test.Arguments.Length; i++)
{
AllureLifecycle.UpdateTestCase(x => x.parameters.Add(new Parameter
{
// ReSharper disable once AccessToModifiedClosure
name = $"Param #{i}",
// ReSharper disable once AccessToModifiedClosure
value = _test.Arguments[i].ToString()
// ReSharper disable once AccessToModifiedClosure
value = _test.Arguments[i] == null ? "NULL" : _test.Arguments[i].ToString()
}));

}

AllureLifecycle.UpdateTestCase(x => x.statusDetails = new StatusDetails
{
Expand Down
11 changes: 11 additions & 0 deletions src/TestSamples/TestClass7.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Threading;
using NUnit.Allure.Attributes;
using NUnit.Allure.Core;
using NUnit.Framework;

Expand Down Expand Up @@ -50,5 +51,15 @@ public void Test2()
{
Console.WriteLine("Test2");
}

[Test, Combinatorial]
[AllureLink("https://github.com/unickq/allure-nunit/issues/17")]
public void TestExample(
[Range(1, 3)] int valA,
[Values(null, 2)] int? valB
)
{
Assert.AreEqual(valA, valB);
}
}
}

0 comments on commit 4612446

Please sign in to comment.