Add unit tests for suitable functionality. For example, conversion of UNIX timestamps to user readable times and similar functionality are good candidates for unit testing.
Add integration tests that test your CSV database library works as intended.
For example, add a test case that checks that an entry can be received from the database after it was stored in there.
Add two end-to-end tests that test your Chirp! CLI app:
For example, you want to test that given example data from chirp_cli_db.csv calling chirp read 10 from the command line produces output as in the following:
ropf @ 08/01/23 14:09:20: Hello, BDSA students!
rnie @ 08/02/23 14:19:38: Welcome to the course!
rnie @ 08/02/23 14:37:38: I hope you had a good summer.
ropf @ 08/02/23 15:04:47: Cheeping cheeps on Chirp :)
Additionally, you want to test that calling chirp cheep "Hello!!!" stores the respective values in the database.
Description
Add different kinds of tests to the project
Requirement Description
chirp_cli_db.csv
callingchirp read 10
from the command line produces output as in the following:chirp cheep "Hello!!!"
stores the respective values in the database.Acceptence criteria
Add the following tests to the project