Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdefelici/vscode-clove-unit
CLove-Unit Testing Extention for VSCode
https://github.com/fdefelici/vscode-clove-unit
clove-unit testing vscode vscode-extension
Last synced: 3 months ago
JSON representation
CLove-Unit Testing Extention for VSCode
- Host: GitHub
- URL: https://github.com/fdefelici/vscode-clove-unit
- Owner: fdefelici
- License: mit
- Created: 2022-03-06T22:03:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T15:51:34.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T15:15:08.568Z (10 months ago)
- Topics: clove-unit, testing, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 397 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# CLove-Unit Testing Extension for VSCode
[](https://marketplace.visualstudio.com/items?itemName=fdefelici.vscode-clove-unit) [](https://marketplace.visualstudio.com/items?itemName=fdefelici.vscode-clove-unit)
The CLove-Unit Extension adds a UI boost for [CLove-Unit](https://github.com/fdefelici/clove-unit) C/C++ testing library.

> Still don't know about [CLove-Unit](https://github.com/fdefelici/clove-unit) testing library?
> It's a Single Header Unit Testing library for C/C++ language, which make easy developer life. Give it a try! ;-)## Extension Activation
In order to activate the extension:
1. First, you need to handle a C/C++ testing project using `CLove-Unit` following the library development [guidelines and samples](https://github.com/fdefelici/clove-unit). (This UI Extension doesn't include CLove-Unit library)
1. Then, create in your workspace the extension configuration file `.vscode/clove_unit_settings.json` (see `Extension Configuration`)
1. Finally, open the workspace folder with VSCode (if you created the configuration within VSCode IDE, make sure to close and re-open it)## Extension Configuration
The extension needs the following configuration in the `.vscode/clove_unit_settings.json`|Property|Description|
|--------|-----------|
| `testSourcesPath` | Workspace relative path to test sources |
| `buildCommand` | A shell command to build a test executable (OPTIONAL) |
| `testExecPath` | The path to the test executable |## Extension Usage
Here an example of project developed with `CLove-Unit` library and related UI Extension Configuration.> You can find this example project [here](./sample).
### Filesystem
Project organization for this example:
```
.vscode/
clove_unit_settings.jsonbin/
test.exe (produced when launching tests - see Configuration)include/
clove-unit.h (the library, you must include it by yourself)src/
test1.c
test2.c
```> NOTE: You can organize your project within the vscode workspace as you prefer. No constraints on this.
### Configuration:
`.vscode/clove_unit_settings.json` configuration for this example:
```json
{
"testSourcesPath" : "src",
"buildCommand" : "clang -I include -o bin\\test.exe src\\*.c",
"testExecPath" : "bin\\test.exe"
}
```
> NOTE: You can use your own configuration and preferred build command. In case, test project build is already managed by your IDE (or by other extensions) you can skip `buildCommand` configuration (either by removing the attribute or by configuring as an empty string).### Test UI:
Test UI will appear like this: