An open API service indexing awesome lists of open source software.

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

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
```