acep-uaf / camio-meter-streams

0 stars 0 forks source link

Update Unit Tests and Create New Tests for Simple and Testable Functions #151

Open nicolemah99 opened 3 months ago

nicolemah99 commented 3 months ago

After implementing error handling and refactoring the codebase, all existing tests are failing. We need to update the unit tests to reflect the changes made during the refactor. Additionally, we should create new tests for functions and scripts that are straightforward and can be tested or mocked easily using BATS (Bash Automated Testing System).

  1. Review and Update Existing Tests:
    • Identify all failing tests.
    • Update the tests to match the refactored code, ensuring they handle the new error handling mechanisms.
  2. Create New Tests:
    • Identify functions and scripts that are simple and testable/mockable.
    • Write unit tests for these functions using BATS.