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

Add Pact tests #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Pact tests #183

wants to merge 1 commit into from

Conversation

dipjyotimetia
Copy link
Owner

@dipjyotimetia dipjyotimetia commented Aug 1, 2024

Related to #24

Add Pact tests for AccountService, ExpenseService, and UserService using the Pact Go library.

  • Add Pact Go library:

    • Add github.com/pact-foundation/pact-go/v2 to go.mod file.
    • Add github.com/pact-foundation/pact-go/v2 to the replace section in go.mod.
  • Create new Pact test file:

    • Create internal/pact/pact_test.go to include Pact tests for AccountService, ExpenseService, and UserService.
  • Update existing test files to include Pact tests:

    • Update cmd/server/main_test.go to include Pact tests for AccountService, ExpenseService, and UserService.
    • Update internal/service/account-service_test.go to include Pact tests for AccountService.
    • Update internal/service/expense-service_test.go to include Pact tests for ExpenseService.
    • Update internal/service/user-service_test.go to include Pact tests for UserService.
    • Update internal/entity/account_test.go to include Pact tests for Account entity.
    • Update internal/entity/expense_test.go to include Pact tests for Expense entity.
    • Update internal/entity/user_test.go to include Pact tests for User entity.

For more details, open the Copilot Workspace session.

Related to #24

Add Pact tests for AccountService, ExpenseService, and UserService using the Pact Go library.

* **Add Pact Go library:**
  - Add `github.com/pact-foundation/pact-go/v2` to `go.mod` file.
  - Add `github.com/pact-foundation/pact-go/v2` to the `replace` section in `go.mod`.

* **Create new Pact test file:**
  - Create `internal/pact/pact_test.go` to include Pact tests for `AccountService`, `ExpenseService`, and `UserService`.

* **Update existing test files to include Pact tests:**
  - Update `cmd/server/main_test.go` to include Pact tests for `AccountService`, `ExpenseService`, and `UserService`.
  - Update `internal/service/account-service_test.go` to include Pact tests for `AccountService`.
  - Update `internal/service/expense-service_test.go` to include Pact tests for `ExpenseService`.
  - Update `internal/service/user-service_test.go` to include Pact tests for `UserService`.
  - Update `internal/entity/account_test.go` to include Pact tests for `Account` entity.
  - Update `internal/entity/expense_test.go` to include Pact tests for `Expense` entity.
  - Update `internal/entity/user_test.go` to include Pact tests for `User` entity.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dipjyotimetia/GoGinApi/issues/24?shareId=XXXX-XXXX-XXXX-XXXX).
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

Successfully merging this pull request may close these issues.

1 participant