- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have test cases in my Visual Studio 2019 solution. It is run by Visual studio by calling the vstest.console.exe. Now I need to check memory leak by running these test cases. Not able to do that using Intel Inspector.
Inputs given by me in Project properties are:
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
Application parameters: /testcontainer:TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug (same which have TwoOPT_TestSuite_x64.dll)
I get error:
Error: Analysis terminated abnormally.
Application exit code: -1
Please let me know what mistake I am doing in providing inputs in project properties. Thanks.
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Could you provide test app for local reproducing?
Please provide Inspector version you used. Thanks.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thank you for your response. The installer used was w_inspector_oneapi_p_2023.0.0.25545.exe
The attached images shows the error message and details.
Please provide guidance in troubleshooting the failure. Thanks.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Did you try with one simple sample, like matrix sample, you can see, the below matrix sample is run by VS in local, and the Inspector can work.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Yes, it works. I created another new console application and giving the path to this console application also works.
What I am struggling is to run the Intel Inspector for VSTest.Console.exe which is the command-line tool to run tests. The details on this exe is https://learn.microsoft.com/en-us/visualstudio/test/vstest-console-options?view=vs-2022
I guess I am not properly giving the inputs in Application parameters in Intel Inspector project properties. Any help in this will be really helpful.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
Application parameters: /testcontainer:TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug (same which have TwoOPT_TestSuite_x64.dll)
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Just running application with parameters as below can work?
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe /testcontainer:TwoOPT_TestSuite_x64.dll
From the guide you shared, there is no need to add '/' , just needs file name, right?
vstest.console.exe myTestProject.dll
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Tried the following but doesn't work.
1.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
Application parameters: /testcontainer:TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug
2.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
Application parameters: TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug
3.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe /testcontainer:TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug
4.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
So I think you need to confirm app + parameters can work first, and then using Inspector to run app + parameters.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thanks for your reply. Sorry, didn't understand. app + parameters in the Application: field?
or something else.
The gist of the problem is that when I run console application and call the exe vstest.console.exe with parameters /testcontainer:TwoOPT_TestSuite_x64.dll, it works.
But if I provide them as below to Intel Inspector, it doesn't work.
Application: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
Application parameters: /testcontainer:TwoOPT_TestSuite_x64.dll
Working directory: C:\Projects\TwoOPT\Code\bin\x64\Debug (same which have TwoOPT_TestSuite_x64.dll)
I will check some more documentation, meanwhile any more pointers from anyone will be helpful.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
You can add "vstest.console.exe /testcontainer:TwoOPT_TestSuite_x64.dll" in one script and specify the script to execute in the application field.
