https://github.com/thinkinglabs/cobol-fizzbuzz-kata
Unit testing with COBOL
https://github.com/thinkinglabs/cobol-fizzbuzz-kata
cobol unit-testing
Last synced: 4 months ago
JSON representation
Unit testing with COBOL
- Host: GitHub
- URL: https://github.com/thinkinglabs/cobol-fizzbuzz-kata
- Owner: thinkinglabs
- License: mit
- Created: 2017-10-11T19:28:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T15:56:36.000Z (over 8 years ago)
- Last Synced: 2025-03-03T01:27:08.278Z (over 1 year ago)
- Topics: cobol, unit-testing
- Language: COBOL
- Size: 58.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unit testing with COBOL
This is a proof of concept to show case unit testing with COBOL. The proof of concept implements the [FizzBuzz kata](http://codingdojo.org/kata/FizzBuzz/) using Test Driven Development.
Unit tests are implemented using [@neopragma](https://github.com/neopragma)'s [cobol-unit-test](https://github.com/neopragma/cobol-unit-test).
## Pre-requisites
To compile and run the tests and program you need the [GnuCOBOL compiler](https://sourceforge.net/projects/open-cobol/).
For MacOS:
```
$ brew install gnu-cobol
```
## Execute FizzBuzz program
To compile and execute the program:
```
$ make compile
$ ./target/FIZZBUZZ
```
## Run the tests
To run the tests:
```
$ make test
```