mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-27 19:49:46 +00:00
Convenient rerun attribute
This commit is contained in:
parent
aa4576c97d
commit
0e4a6774ef
@ -21,7 +21,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
[Test]
|
||||
[Combinatorial]
|
||||
public void Fail(
|
||||
[Values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])] int rerun
|
||||
[Rerun] int rerun
|
||||
)
|
||||
{
|
||||
var hosts = StartHosts();
|
||||
|
||||
@ -27,7 +27,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
[Test]
|
||||
[Combinatorial]
|
||||
public void Finish(
|
||||
[Values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])] int rerun
|
||||
[Rerun] int rerun
|
||||
)
|
||||
{
|
||||
var hosts = StartHosts();
|
||||
|
||||
@ -34,7 +34,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
[Test]
|
||||
[Combinatorial]
|
||||
public void RollingRepairSingleFailure(
|
||||
[Values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])] int rerun,
|
||||
[Rerun] int rerun,
|
||||
[Values(10)] int numFailures)
|
||||
{
|
||||
var hosts = StartHosts().ToList();
|
||||
|
||||
@ -23,7 +23,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
[Test]
|
||||
[Combinatorial]
|
||||
public void Start(
|
||||
[Values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])] int rerun
|
||||
[Rerun] int rerun
|
||||
)
|
||||
{
|
||||
var hosts = StartHosts();
|
||||
|
||||
16
Tests/CodexReleaseTests/RerunAttribute.cs
Normal file
16
Tests/CodexReleaseTests/RerunAttribute.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace CodexReleaseTests
|
||||
{
|
||||
public class RerunAttribute : ValuesAttribute
|
||||
{
|
||||
private const int NumberOfReRuns = 1;
|
||||
|
||||
public RerunAttribute()
|
||||
{
|
||||
var list = new List<object>();
|
||||
for (var i = 0; i < NumberOfReRuns; i++) list.Add(i);
|
||||
data = list.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user