1
0
Fork 0
mirror of synced 2024-06-01 18:09:47 +12:00
bulk-downloader-for-reddit/scripts/tests
2022-04-18 20:48:02 -05:00
..
bats@ce5ca2802f Add submodules for bash testing 2021-06-11 18:40:26 +10:00
example_logfiles Add tests for bash scripts 2021-06-13 09:50:41 +10:00
test_helper Add submodules for bash testing 2021-06-11 18:40:26 +10:00
README.md Add information to sub-README 2021-06-13 13:10:13 +10:00
test_extract_failed_ids.bats okay 2022-04-18 20:42:50 -05:00
test_extract_successful_ids.bats and this one too 2022-04-18 20:48:02 -05:00

Bash Scripts Testing

The bats framework is included and used to test the scripts included, specifically the scripts designed to parse through the logging output. As this involves delicate regex and indexes, it is necessary to test these.

Running Tests

Running the tests are easy, and can be done with a single command. Once the working directory is this directory, run the following command.

./bats/bin/bats *.bats

This will run all test files that have the .bats suffix.