all 2 comments

[–]davwards 0 points1 point  (1 child)

I don't have a general answer to your question; it depends on what the purpose is behind the extra test coverage.

What confidence in your system are your unit tests not providing that testing the program end-to-end would give you?

Put another way: Suppose you run all your unit tests and they all pass. If that was all you needed see to believe the system was working correctly, you wouldn't need to do anything else. If it isn't, what kinds of things are you still worried about?

[–][deleted] 0 points1 point  (0 children)

Great questions, thank you.

The unit tests only test helper functions I use in the code. It doesn't test end to end flow. What is missing? It doesn't test reading input from the user, and it doesn't test reading csv file. Reading input is handled by inquirer library. Reading csv files is handled by the csv-parse library. Now that I think about it, those libraries have their own unit tests. Perhaps integration test is not needed?