Git Product home page Git Product logo

vscode-cpp-unit-test's People

Contributors

mattrussell2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vscode-cpp-unit-test's Issues

Multiple tests

Thank you for this extension!
Is it possible to have multiple files for splitting up tests instead of having a single file with a lot of tests in it?

Unable to enable unit testing in vscode

image

First touch command is not recognized, then when definition for touch is added as in:
image

Post this, then touch generates another error as:
image

Kindly help me in setting up the extension

Invalid syntax error whenever running a test

I've tried setting up this extension for unit testing, but every time I try to run any test I get the following error:

stdout
------

stderr
------
ERROR: Invalid syntax. Default option is not allowed more than '1' time(s).
Type "TIMEOUT /?" for usage.

I've tried setting it up multiple times and I'm fairly certain I've followed the instructions for setting up the extension exactly. I'm using the exact unit_tests.h and Makefile that are shown in the instructions. I have also tried some different test functions (such as simply assert(true)), and they all fail in the same way. It seems the error is related to the timeout command, though I can't find any references to timeout in my code or within the extension.

Using different compiler

When I try to run tests using g++ I can change the compiler in the Makefile, but it looks like clang++ is hardcoded elsewhere in the code and the tests do not run. Is this fixable?

Error when running test

When I try to run the test I get this:

> process_begin: CreateProcess(NULL, clang++ -c -o unit_test_driver.o unit_test_driver.cpp, ...) failed.
> make (e=2): The system cannot find the file specified.
> make: *** [<builtin>: unit_test_driver.o] Error 2

Test groups go inside each other

First, thanks! I have a small project where I wanted to add unit tests and didn't want to add a huge framework. This extension fit the bill perfectly.

The test group feature works, but it seems that the groups are inserted inside the previous one, see the screenshot.

Also, the closing comment mark is displayed on the testing tree, but that can be fixed by just placing it on the next line.

image

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.