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 #180 from netspiri/feature/#176
Browse files Browse the repository at this point in the history
Add Configurable Post Test Batch Delay
  • Loading branch information
guwirth authored Jan 22, 2017
2 parents 6d81658 + 0feda12 commit e4e374f
Show file tree
Hide file tree
Showing 3 changed files with 471 additions and 383 deletions.
22 changes: 15 additions & 7 deletions BoostTestAdapter/BoostTestExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@
using System.IO;
using System.Linq;
using System.Xml;
using System.Threading;
using System.Runtime.InteropServices;

using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using VSTestCase = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase;
using VSTestResult = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult;

using BoostTestAdapter.Boost.Results;
using BoostTestAdapter.Boost.Runner;
using BoostTestAdapter.Settings;
using BoostTestAdapter.TestBatch;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using BoostTestAdapter.Utility;
using BoostTestAdapter.Utility.VisualStudio;
using System.Runtime.InteropServices;
using VSTestCase = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase;
using VSTestResult = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult;
using BoostTestResult = BoostTestAdapter.Boost.Results.TestResult;
using BoostTestAdapter.Utility.ExecutionContext;
using BoostTestResult = BoostTestAdapter.Boost.Results.TestResult;

namespace BoostTestAdapter
{
Expand Down Expand Up @@ -362,6 +365,11 @@ private void RunBoostTests(IEnumerable<TestRun> testBatches, IRunContext runCont
// Execute the tests
if (ExecuteTests(batch, runContext, frameworkHandle))
{
if (settings.PostTestDelay > 0)
{
Thread.Sleep(settings.PostTestDelay);
}

foreach (VSTestResult result in GenerateTestResults(batch, start, settings))
{
// Identify test result to Visual Studio Test framework
Expand Down
Loading

0 comments on commit e4e374f

Please sign in to comment.