micst / ctestadapter Goto Github PK
View Code? Open in Web Editor NEWA Test Adapter for VisualStudio to run CTest tests
A Test Adapter for VisualStudio to run CTest tests
Hi There,
I installed the test adapter and the tests show now in vs2017 test explorer. but I am can not debug ( step through the code ) when I run a test in debug. can you advise/help with that?
the second I ma trying to update the ctestAdapter to VS 2019 but unsuccessfully. is there a plan to make ctestadapter support vs 2019?
thanks;
-GG
Add some git hooks to improve code consistency.
I tried to set the PATH variable for the execution of my tests and noticed that only the first value is getting through if add more than one path. Here is a simple repro case:
add_test(
NAME test_run
COMMAND test_executable
)
set_property(
TEST test_run
PROPERTY ENVIRONMENT
"FOO=A;B;C"
"BAR=D;E"
)
when getting the value of the variable using:
std::string get_environment(const char* env_var)
{
std::string value;
char* buf = nullptr;
size_t sz = 0;
if (_dupenv_s(&buf, &sz, env_var) == 0 && buf != NULL) {
value = buf;
free(buf);
}
return value;
}
...
std::cout << "FOO=" << get_environment("FOO").c_str() << std::endl;
std::cout << "BAR=" << get_environment("BAR").c_str() << std::endl;
I only get the first value. I.e.:
FOO=A
BAR=D
when setting the variable in the visual studio project settings of 'test_executable' and run the executable directly (not from Test Explorer), everything works as expected:
FOO=A;B;C
BAR=D;E
Find the original issue here
@toeb wrote:
Hi - sorry there is no PM in github so I had to create an issue here ;)
I saw that you created CTestAdapter. (also ctesttestadapter was a mouthful - even though more consistent - I thought about CTestAdapter as well but found it too ambiguous - mistake ) It looks very good :) and thanks for the credits.
I see the project uses CMake to add dotnet projects and I have a couple of questions because I might want to add some stuff to cmakepp to make dotnet/CMake easier
If you could elabarate it would be greatly appreciated
Currently CTestAdapter only works with generated solution which are opened using Visual Studio. When opening a CMake codebase with the new 2017 "open folder" mechanism, it does not work.
Installation of CTestAdapter on Visual Studio 2017 Update 15.6 not possible.
Most probably because of changes in the version of some dependencies e.g. from 15.0 to 15.6 the installation is not allowed. After manually patching all manifest files of the vsix package, to refer to version [15.0,16.0) instead of [15.0] the installation was possible.
Tests should be updated when Configuration is changed in Visual Studio.
Should be configurable in the option page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.