Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the RevitTestFrameWork with 2023 #112

Open
talisman opened this issue Apr 5, 2023 · 0 comments
Open

Running the RevitTestFrameWork with 2023 #112

talisman opened this issue Apr 5, 2023 · 0 comments

Comments

@talisman
Copy link

talisman commented Apr 5, 2023

Hi ,
I want to use this Framework for testing my revit plugins , no dynamo involved at this point .
I git cloned this repo, replaced the Revit references with DLLs from Revit 2023 and compiled it successfully.
I created a solution with two projects - one for my production code the other for testing . The testing one references the production as well as the RTFRevit.dll and the RevitTestFrameworkTypes.dll . Both the production and the test projects compiles fine.
Once I run the GUI version I get the list of Revit Versions installed on my machine which indicated that I am in the right direction.
Once I choose the Dll containing the test, specify the working folder and the results file, select (test or multiple tests) and click run - nothing happens .
When I run the Console version with all the required parameters I get output of the tests discoverd and the models and an error :

...
Attempting to resolve referenced assembly: RevitTestFrameworkTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Found assembly:C:\_home\src\ApartmentAreas\ApartmentAreasTests\bin\Debug\RevitTestFrameworkTypes.dll
Loaded test: Name: CanCollectAreaSchemes, Model Path: C:\_home\src\ApartmentAreas\ApartmentAreasTests\2022.ApartmentAreasTests.rvt (C:\_home\src\ApartmentAreas\ApartmentAreasTests\2022.ApartmentAreasTests.rvt)
Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'.
...

I get the same errors when trying to run against the SampleTests that ship with the repo .
Any idea where this issue comes from ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant