Skip to content

Commit

Permalink
Add Console Environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Oct 1, 2024
1 parent 183b30a commit ccd2767
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add `RevitTestUtils.Exceptions` to show exceptions in the console.
- Add `ricaun.RevitAPI.Fake.References.RevitAPIUI` to fix `RevitAPIUI` reference exception in the discovery test. (Fix: #58)
- Disable/Remove discovery test to use `RevitAPIUI` version `2021` to `2023`.
- Add Environment variable for process arguments `RICAUN_REVITTEST_CONSOLE_PROCESS_ARGUMENTS`.
### Shared
- Update to use `ricaun.NamedPipeWrapper.Json` version `1.8.0`.
### TestAdapter
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions ricaun.RevitTest.Console/Revit/Utils/RevitTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public static void CreateRevitServer(
if (revitInstallation.TryGetProcess(out Process process) == false || forceToOpenNewRevit)
{
var startRevitLanguageArgument = RevitLanguageUtils.GetArgument(forceLanguageToRevit);
startRevitLanguageArgument = string.Join(" ", startRevitLanguageArgument, Environment.GetEnvironmentVariable("RICAUN_REVITTEST_CONSOLE_PROCESS_ARGUMENTS"));
Log.WriteLine($"{revitInstallation}: Start {startRevitLanguageArgument}");
process = revitInstallation.Start(startRevitLanguageArgument);
}
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit ccd2767

Please sign in to comment.