Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Add Unit tests #3

Open
naftalimurgor opened this issue Sep 1, 2024 · 0 comments
Open

Tests: Add Unit tests #3

naftalimurgor opened this issue Sep 1, 2024 · 0 comments

Comments

@naftalimurgor
Copy link

Description:

This issue proposes adding unit and integration tests to improve the reliability and maintainability of the gobglbridge codebase. Currently, there is a lack of comprehensive automated testing, which is essential to ensure new changes do not break existing functionality.

Objectives:

  • Unit Tests: Cover core functions, handle typical inputs, edge cases, and errors, using mocks where necessary.
  • Integration Tests: Test real-world scenarios, including interactions between modules and external services, focusing on transaction processing and error handling.
  • Test Coverage: Aim for at least 80% coverage using tools like go test -cover, with integration into CI/CD pipelines.

Benefits:

  • Improved Code Quality: Catch bugs and regressions early.
  • Faster Development: Allow safe and confident code changes.
  • Documentation: Tests serve as documentation for expected behavior.
  • Scalability: Ensure future changes don’t break existing functionality.

Deliverables:

  • Unit and integration tests in a tests/ directory.
  • Documentation on running tests.
  • CI/CD updates to automate test execution.
  • Initial test coverage of at least 50%, with plans to increase.

Request for Feedback:

  • Suggestions for test cases, scenarios, and preferred testing tools (e.g., testify, Ginkgo) are welcome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant