-
Notifications
You must be signed in to change notification settings - Fork 222
Project and sources to build Runtests.exe ? #269
Comments
The project file corresponding to RunTests.exe is at Test\Platform\Tools\MFTestSystem\MFTestSystem.csproj. (Generally, the relevant source code files are at Test\Platform\Tools) By the way, you should notice that not all the unit tests are passing at the moment but a big majority are. In fact, there are a few test bugs which we are investigating at the moment. |
Thank you. Not sure how I missed that (Blush!) I have been working on the presentation.sln Unit Tests. I suggest that the events are added to the Child of the mainWindow, not directly to mainWindow object as there is no method to remove event handlers once added that I am aware of. The CleanWindow() method allocates a new Text child, effectively removing the event handlers.
and
Then add the following snippet to the following tests at the end of each test to clean up and remove the event handlers.
public MFTestResults UIElement_RaiseEvent_ButtonEvent_Test1() I have not been able to fix public MFTestResults UIElement_ArrangeTest4(). Previously it was working due to the event handlers still being present from previous tests. Specifically the following code does not appear to achieve the desired result.
This test 4 will only pass if they are replaced with
Same for
to be replaced with
I am not up to speed with EventRoute, so not sure of the fix. In test public MFTestResults UIElement_InvalidateTest16(), I had to use mainWindow Dispatcher to get it to update the rectangle? when using _rect object, the method InvalidateTest was never called. // _rect.Dispatcher.Invoke(new TimeSpan(0, 0, 20), In public MFTestResults UIElement_InvalidateArrangeTest17(), you can change I changed the following two methods to force the rectangle to be updated.
Let me know if there are any questions. Kind regards |
It would be good for the Wiki ("Getting Started"?) to be extended to describe and recommend the processes to run the Tests. Adds some focus on their on-going value. Maintaining and developing them ensures we don't inadvertently break anything along the way. I assume the correct way to build the tests is.
To Run the tests
|
What is the correct way to load the Solutions for individual Tests into VS2015 so they can be run and debugged? A related question is the purpose of setenv_vs? When should this be used? The .csproj files need the following to be defined for the HintPath.
e.g..
BUILD_TEST_TREE_CLIENT is defined. And BUILD_TREE_DLL can be created as follows.
Maybe BUILD_TREE_DLL should be added to setenv_vs or setenv_base? On Win7, with VS2013 & RVDS I use the following devenv.cmd in my %SPOCLIENT% folder to launch VS2013 in the context of the Cmd prompt with all the environment variables set.
I can load a Test .sln file from VS2013 File/Project menu and Start it and single step as one would expect. This does not work on Win10, VS2015 with DS5.(with setenv_ds5 5.05) VS2015 does not find the Reference assemblies. I have checked they exist in the expected folders. I must be doing something simple that prevents running the test project from VS2015. Please will anyone else who can run and single step the tests explain what they are doing to make it work. Thank you. |
Should the above comment be moved to it's own issue as its a little different to RunTest.exe issue title? |
to load the project files using BUILD_TREE etc. there are two options:
|
Framework\Debugger\Debugger.csproj refers to Framework v4.5. Why?
Are there offline versions of the files in folder *framework\IDE\Targets\v4.5* that are different to the files in online folder v4.4? |
The debugger.csproj project is for the desktop components (specifically the Visual Studio extension for debugging NETMF applications) Thus is sets the desktop framework version it is expected to run with. |
Where can I find how to build and debug RunTests.exe?
I can run individual tests using the supplied RunTests.exe OK, but occasionally get errors running all tests with timeouts between test solutions running on the live hardware. I hope to make a modified RunTests.exe that can cope with longer delays between tests. Looking for the ideal SIG (All green) on the unit tests Results.htm.
Thanks
Richard
The text was updated successfully, but these errors were encountered: