Skip to content

Commit

Permalink
Fix application and rebuild issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed May 9, 2024
1 parent c7871da commit 938291c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- Fix `ApplicationUtils` to clear temp folder after some minutes. (Fix: #41)
- Fix Net Core tests not stay after rebuild. (Fix: #40)
### TestAdapter
- Fix application and rebuild issue.

## [1.3.1] / 2024-04-02
### Features
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 6 additions & 3 deletions ricaun.RevitTest.TestAdapter/Services/RevitTestConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ private string GetEnvironmentVariable(string applicationPath)
return applicationPath;
}

private string ValidadeApplication(string applicationPath)
private string ValidadeApplication(string applicationPath, bool showApplicationName = false)
{
if (string.IsNullOrWhiteSpace(applicationPath))
return null;

AdapterLogger.Logger.InfoAny($"Application: {Path.GetFileName(applicationPath)}");
if (showApplicationName)
AdapterLogger.Logger.InfoAny($"Application: {Path.GetFileName(applicationPath)}");
else
AdapterLogger.Logger.Info($"Application: {Path.GetFileName(applicationPath)}");

applicationPath = GetEnvironmentVariable(applicationPath);

Expand Down Expand Up @@ -60,7 +63,7 @@ private string ValidadeApplication(string applicationPath)

public RevitTestConsole(string application = null)
{
applicationPath = ValidadeApplication(application);
applicationPath = ValidadeApplication(application, true);
if (applicationPath is null)
{
var name = ResourceConsoleUtils.Name;
Expand Down

0 comments on commit 938291c

Please sign in to comment.