Skip to content

Commit 26430b9

Browse files
authored
Merge pull request #20 from fdefelici/vscode-clove-ext
features for vscode extension
2 parents 9abf7a2 + a3a2fde commit 26430b9

34 files changed

+1398
-294
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ project(CLoveUnit LANGUAGES C)
33

44
add_subdirectory(tests)
55
add_subdirectory(perfs)
6+
add_subdirectory(test_report)
67
add_subdirectory(examples/auto)
78
add_subdirectory(examples/manual)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2021 Federico De Felici
3+
Copyright (c) 2021-2022 Federico De Felici
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ It is possible to use this libray in two flavours:
1919
- **Autodiscovery** mode, where you just need to implement your tests, and than the library will do the magic to discover and execute them.
2020

2121
> NOTE: **Autodiscovery** works parsing the symbol table in the test executable. At the moment this feature is available for the following OS / Architecture / Executable Format:
22-
> - Windows / 64 bit little-endian / PE (Portable Executable)
22+
> - Windows / 32-64 bit little-endian / PE (Portable Executable)
2323
> - MacOS / 64 bit little-endian / Mach-o (Mach Object)
2424
> - Linux / 64 bit little-endian / ELF (Executable and Linkable Format)
2525
>
2626
> Further compatibilities in terms of OS, Architecture and Format can be implement later on as needed.
2727
2828

2929
# Usage
30-
Just add [clove.h](./clove.h) header in your project and starts creating unit tests for your code depending on the two modes: **Manual** and **Autodiscovery**
30+
Just add [clove-unit.h](./clove-unit.h) header in your project and starts creating unit tests for your code depending on the two modes: **Manual** and **Autodiscovery**
3131

3232
## Manual Mode
3333
First define a Suite and related test cases:
3434
```c
3535
//file test_suite1.h
3636
#define CLOVE_ENABLE_MANUAL
37-
#include "clove.h"
37+
#include "clove-unit.h"
3838

3939
CLOVE_TEST(FirstTest) {
4040
int a = 1;
@@ -59,7 +59,7 @@ Than include the test suite files in the one that will be the main program and e
5959
```c
6060
//file main.c
6161
#define CLOVE_ENABLE_MANUAL
62-
#include "clove.h"
62+
#include "clove-unit.h"
6363
#include "test_suite1.h"
6464
#include "test_suite2.h"
6565
@@ -77,7 +77,7 @@ First define a Suite name and then implement related test cases:
7777
```c
7878
//file test_suite1.c
7979
#define CLOVE_SUITE_NAME MySuite01
80-
#include "clove.h"
80+
#include "clove-unit.h"
8181

8282
CLOVE_TEST(FirstTest) {
8383
int a = 1;
@@ -94,7 +94,7 @@ Than setup a translation unit to be the main program with autodiscovery feature:
9494
9595
```c
9696
//file main.c
97-
#include "clove.h"
97+
#include "clove-unit.h"
9898
9999
CLOVE_RUNNER()
100100
```

0 commit comments

Comments
 (0)