mattrussell2 / vscode-cpp-unit-test Goto Github PK
View Code? Open in Web Editor NEWA simple and sweet VSCode extension to unit test C++ code.
License: MIT License
A simple and sweet VSCode extension to unit test C++ code.
License: MIT License
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?
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.
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?
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
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.
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.