https://github.com/kormanowsky/ctest
A tester script for C programs of 2nd semester
https://github.com/kormanowsky/ctest
Last synced: over 1 year ago
JSON representation
A tester script for C programs of 2nd semester
- Host: GitHub
- URL: https://github.com/kormanowsky/ctest
- Owner: kormanowsky
- Created: 2021-02-21T18:57:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T19:40:55.000Z (over 5 years ago)
- Last Synced: 2025-01-28T02:23:37.913Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CTest
A Python script which builds and tests your C programs.
## Installation
1. Download ctest.py and rename it to somewhere in your `PATH`,
e. g. `/usr/local/bin/ctest`
2. Run ctest: `ctest `
## Configuration
Add `ctestconfig.json` to your directory. You are able to configure the script
by settings configuration options provided in `default_config` variable.
## Output example
```bash
CTest tester script
Building /Users/mikhail/PycharmProjects/ctest/main.c using gcc-7 ...
Built /Users/mikhail/PycharmProjects/ctest/main.c to /Users/mikhail/PycharmProjects/ctest/main.exe
Testing /Users/mikhail/PycharmProjects/ctest/main.exe ...
Positive tests:
01: passed
Negative tests:
02: passed
Tested /Users/mikhail/PycharmProjects/ctest/main.exe
Running coverage for /Users/mikhail/PycharmProjects/ctest/main.c ...
-.gcno:cannot open notes file
b.gcno:cannot open notes file
File '/Users/mikhail/PycharmProjects/ctest/main.c'
Lines executed:100.00% of 6
Creating 'main.c.gcov'
Lines executed:100.00% of 6
Ran coverage for /Users/mikhail/PycharmProjects/ctest/main.c
Done!
```