Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/islandcontroller/cutest-template
Eclipse Embedded CDT Project Template for "cutest" test projects
https://github.com/islandcontroller/cutest-template
cutest eclipse-cdt embedded-c unit-testing
Last synced: about 2 months ago
JSON representation
Eclipse Embedded CDT Project Template for "cutest" test projects
- Host: GitHub
- URL: https://github.com/islandcontroller/cutest-template
- Owner: islandcontroller
- Created: 2023-04-22T21:08:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-31T20:30:39.000Z (over 1 year ago)
- Last Synced: 2023-07-31T21:46:01.700Z (over 1 year ago)
- Topics: cutest, eclipse-cdt, embedded-c, unit-testing
- Language: C
- Homepage: https://hub.docker.com/r/islandc/cutest
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cutest-template
Eclipse Embedded CDT project template for the *cutest* C Unit-Testing Framework.
## Usage
* Grab a copy of this project (→ [latest](../../archive/refs/heads/master.zip))
* Extract the archive into your target project (see [Example project](https://github.com/islandcontroller/cutest-example) for recommended setup!)
* Open Eclipse
* → Import... → Existing Projects into Workspace
* Select the `TEST_MyUnit` template project
* After import, you can rename the `TEST_...`-Project### Automated Testing
A [Makefile](Makefile) is provided for building and running the test executable CI/CD workflow, such as using *Jenkins* or *GitHub Actions*. Make the `all` build target inside a [islandc/cutest](https://hub.docker.com/r/islandc/cutest) build container:
- name: Run Unit-Test
uses: docker://islandc/cutest
with:
args: /bin/sh -c "make all"The project name can be overridden using an environment variable:
PROJ_NAME=name make all
If you are referencing other projects outside the CuTest root, make sure to workspace-mount the most top-level common folder, and `-C` to the CuTest root within the `cutest` container (see [cutest-example](https://github.com/islandcontroller/cutest-example/blob/master/.github/workflows/cutest-unit-tests.yml) action)
- name: Run Unit-Test
uses: docker://islandc/cutest
with:
args: /bin/sh -c "make all -C "### GitHub Actions
A template job description is provided in [`cutest-action.yml`](cutest-action.yml).