Giter Site home page Giter Site logo

ctestadapter's People

Contributors

micst avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

devappd

ctestadapter's Issues

debug from the VS test explorer

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 git hook

Add some git hooks to improve code consistency.

Passing Environment Variables that with multiple values fails

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

Contact (from legacy project)

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

  • Did you think of the CMake code to create these projects yourself and/or do you have resources for dotnet/CMake.
  • Does using CMake and dotnet work well? (in comparison to normal visual studio csproj) or are major features missing normally available in VS?
  • Why did you do it? (cross platfrom dotnet build / multitarget version (VS10-15) or just because you like cmake?

If you could elabarate it would be greatly appreciated

Not possible to install CTestAdapter v3.2.0 on Visual Studio 2017 update v15.6

Installation of CTestAdapter on Visual Studio 2017 Update 15.6 not possible.

image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.