Skip to content

Commit a9c91ca

Browse files
committed
Update execution/timeout message in the log.
1 parent 2e18c3b commit a9c91ca

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515
- Remove deprecated `wait` option and `RevitDebugUtils`.
1616
- Add `Timeout` option to abort application.
1717
- Fail all tests when `Timeout` happen.
18+
- Update execution/timeout message in the log.
1819
### Command
1920
- Add `RevitTestProcessStart` to run tests with `ProcessStart`.
2021
- Remove deprecated `wait` option.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.4.0-beta</Version>
3+
<Version>1.4.0-rc</Version>
44
</PropertyGroup>
55
</Project>

README.old.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,19 @@ For more information see [Wiki](https://github.com/ricaun-io/ricaun.RevitTest/wi
6060
* [ricaun.Revit.UI.Tasks](https://github.com/ricaun-io/ricaun.Revit.UI.Tasks)
6161
* [ricaun.Revit.UI.Busy](https://github.com/ricaun-io/ricaun.Revit.UI.Busy)
6262
* [ricaun.RevitTest.Shared](ricaun.RevitTest.Shared)
63+
#### Command
64+
* [ricaun.NUnit](https://github.com/ricaun-io/ricaun.NUnit)
6365
#### Console
6466
* [ricaun.Revit.Installation](https://github.com/ricaun-io/ricaun.Revit.Installation)
6567
* [ricaun.RevitTest.Command](ricaun.RevitTest.Command)
6668
* [ricaun.RevitTest.Shared](ricaun.RevitTest.Shared)
6769
* [ricaun.RevitTest.Application.bundle.zip](ricaun.RevitTest.Application)
68-
#### Command
69-
* [ricaun.NUnit](https://github.com/ricaun-io/ricaun.NUnit)
7070
#### Shared
7171
* [ricaun.NUnit](https://github.com/ricaun-io/ricaun.NUnit)
7272
* [NamedPipeWrapper.Json](https://github.com/ricaun-io/named-pipe-wrapper-json)
7373
#### TestAdapter
7474
* [ricaun.RevitTest.Console.exe](ricaun.RevitTest.Console)
75+
* [ricaun.RevitTest.Command](ricaun.RevitTest.Command)
7576
* [ricaun.Security.WinTrust](https://github.com/ricaun-io/ricaun.Security.WinTrust)
7677

7778
## CommandLine
-71 Bytes
Binary file not shown.

ricaun.RevitTest.Console/Revit/Utils/RevitTestUtils.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ public static void CreateRevitServer(
109109
int timeoutMinutes = 0,
110110
params string[] testFilters)
111111
{
112-
var forceToWaitRevit = false;
113-
114-
int timeoutNotBusyCountMax = forceToWaitRevit ? 0 : 10;
112+
int timeoutNotBusyCountMax = 10;
115113

116114
if (timeoutMinutes <= 0)
117115
timeoutMinutes = TimeoutMinutesDefault;
@@ -214,7 +212,7 @@ public static void CreateRevitServer(
214212

215213
if (i % 30 == 0 && i > 0)
216214
{
217-
Log.WriteLine($"{revitInstallation}: Wait {i/60.0} / {timeoutMinutes} minutes");
215+
Log.WriteLine($"{revitInstallation}: Execution time is {i / 60.0} minutes, maximum {timeoutMinutes} minutes.");
218216
}
219217

220218
if (process.HasExited) break;
@@ -229,7 +227,7 @@ public static void CreateRevitServer(
229227

230228
if (timeoutNotBusyCountMax > 0 && timeoutNotBusyCount > timeoutNotBusyCountMax)
231229
{
232-
var timeoutMessage = $"Timeout not busy for too long {timeoutNotBusyCountMax} seconds.";
230+
var timeoutMessage = $"RevitTest: Timeout not busy for too long {timeoutNotBusyCountMax} seconds.";
233231
Log.WriteLine($"{revitInstallation}: {timeoutMessage}");
234232
var exceptionTimeoutTests = new Exception(timeoutMessage);
235233
var timeoutTests = TestEngine.Fail(fileToTest, exceptionTimeoutTests, testFilters);
@@ -246,7 +244,7 @@ public static void CreateRevitServer(
246244

247245
if (timeoutForceToEnd)
248246
{
249-
var timeoutMessage = $"Timeout {timeoutMinutes} minutes.";
247+
var timeoutMessage = $"RevitTest: Timeout {timeoutMinutes} minutes.";
250248
Log.WriteLine($"{revitInstallation}: {timeoutMessage}");
251249
var exceptionTimeoutTests = new Exception(timeoutMessage);
252250
var timeoutTests = TestEngine.Fail(fileToTest, exceptionTimeoutTests, testFilters);
-58 Bytes
Binary file not shown.
-104 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)