Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjamingr/ctestrunner
C Test Runner
https://github.com/benjamingr/ctestrunner
Last synced: 4 days ago
JSON representation
C Test Runner
- Host: GitHub
- URL: https://github.com/benjamingr/ctestrunner
- Owner: benjamingr
- License: mit
- Created: 2013-08-02T21:17:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-02T21:28:17.000Z (over 11 years ago)
- Last Synced: 2024-10-19T05:02:01.002Z (19 days ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ctestrunner
===========Playing around with C and Node in C Test Runner.
- Requires NodeJS
###Usage:
Run `nodejs test_runner.js dependencies`
To run the example run:
nodejs test_runner.js test.c add
###Example:Test file:
It "Says 1+1 = 2" ===>
if(add(1,1) != 2){
return 1; // error result
}else{
return 0; // yay
}
<===It "Works with ok" ===>
ok(1==1,"YEAH");
<===It "Works with equals" ===>
equal(10,10,"10 is 10");
<===
Code Files:// .h file
int add(int a,int b);// .c file
int add(int a,int b){
return a+b;
}
Usage:
nodejs test_runner.js test.c add>It :
> ✔ Says 1+1 = 2
> ✔ Works with ok
> ✔ Works with equals