Skip to content

Commit

Permalink
Update RevitTestUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Dec 4, 2023
1 parent 179db35 commit c839937
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Update `net7.0-windows` framework.
- Update `csproj`.
- Update `MarshalUtils` in `net7.0`
- Update `RevitTestUtils` with `hiddenRevitArgument`
- Update `RevitTestUtils` with no `hiddenRevitArgument`, use `NUnit.Language` to add extra arguments to open Revit.
### Build
- Update `net48` and `net7.0-windows` console zip.
### TestAdapter
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.2.1-beta.5</Version>
<Version>1.2.1-beta.6</Version>
</PropertyGroup>
</Project>
6 changes: 2 additions & 4 deletions ricaun.RevitTest.Console/Revit/Utils/RevitTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,12 @@ public static void CreateRevitServer(
if (RevitInstallationUtils.InstalledRevit.TryGetRevitInstallationGreater(revitVersionNumber, out RevitInstallation revitInstallation))
{
Log.WriteLine(revitInstallation);
//var processStarted = false;

if (revitInstallation.TryGetProcess(out Process process) == false || forceToOpenNewRevit)
{
var startRevitLanguageArgument = RevitLanguageUtils.GetArgument(forceLanguageToRevit);
var hiddenRevitArgument = "/hosted";
Log.WriteLine($"{revitInstallation}: Start {startRevitLanguageArgument}");
process = revitInstallation.Start(startRevitLanguageArgument + " " + hiddenRevitArgument);
//processStarted = true;
process = revitInstallation.Start(startRevitLanguageArgument);
}

var client = new PipeTestClient(process);
Expand Down
3 changes: 2 additions & 1 deletion ricaun.RevitTest.Tests/TestsDebugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_LOCAL")]
[assembly: AssemblyMetadata("NUnit.Application", "NUNIT_APPLICATION_TEST")]
[assembly: AssemblyMetadata("NUnit.Application", "D:\\Users\\ricau\\source\\repos\\ricaun.RevitTest\\ricaun.RevitTest.Console\\bin\\Debug\\ricaun.RevitTest.Console.exe")]
[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_ONLINE_TEST")]
[assembly: AssemblyMetadata("NUnit.Application", "D:\\Users\\ricau\\source\\repos\\ricaun.RevitTest\\ricaun.RevitTest.Console\\bin\\Debug\\ricaun.RevitTest.Console.exe")]
//[assembly: AssemblyMetadata("NUnit.Language", "ENU /hosted")]

//[assembly: AssemblyMetadata("NUnit.Application", "C:\\Users\\ricau\\Downloads\\SampleTest\\ricaun.DA4R.NUnit.Console.zip")]
//[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\ricaun.RevitTest.Console.exe")]
Expand Down

0 comments on commit c839937

Please sign in to comment.