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

feat: automated integration testing process #105

Closed
wants to merge 4 commits into from

Conversation

itsfpbtw
Copy link
Contributor

@itsfpbtw itsfpbtw commented Mar 27, 2024

Feature

Services and a dedicated workflow for integration testing using docker compose.

Bugfix
  • Description
    N/A

  • Cause
    N/A

  • Solution
    N/A

Changelog N/A
Visual evidences 🖼️
Checklist
  • Issue linked
  • Build working correctly
  • Tests created
Additional info N/A

@itsfpbtw itsfpbtw marked this pull request as ready for review March 27, 2024 13:11
.env.example Outdated Show resolved Hide resolved
Copy link
Contributor

@k1nha k1nha Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e se for mudar para lowercase. temos alterar a validação aqui também
!= development

@PiluVitu
Copy link
Member

PiluVitu commented Apr 6, 2024

Pr do splash era para estar listado nos commits dessa branch ?

@GabrielTrindadeC GabrielTrindadeC linked an issue Apr 8, 2024 that may be closed by this pull request
UserController *controllers.UserController
}

func InitRoutes(controllers Controllers, c *chi.Mux) {

c.Route("/api", func(r chi.Router) {
r.Route("/pets", func(r chi.Router) {
r.Get("/{id}", controllers.FindPetController.FindPet)
r.Get("/{id}", controllers.PetController.FindPet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modifica para petID para deixar na mesma logica

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Galera, vamos usar o sqlx como padrao?
https://github.com/jmoiron/sqlx

Ja usamos em Usuario

@PiluVitu
Copy link
Member

PiluVitu commented May 3, 2024

Esse é o atual ambiente de desenvolvimento, vou jogar as imagens para alpine, ta batendo um tamanho considerável nas imagens
image

itsfpbtw and others added 4 commits May 14, 2024 16:46
- add services to automate the integration testing process;
- remove everything related to production because it's not needed;
- make minor fixes and improvements.
- fix typos;
- full support for environment parametrization in docker compose.
@PiluVitu PiluVitu force-pushed the feat-docker-integration-tests branch from f861e2e to 4411d39 Compare May 14, 2024 19:48
@PiluVitu
Copy link
Member

PiluVitu commented May 21, 2024

Preciso:

  • Ajustar workflow de teste unitario
    • O workflow está ok, mas ele estava trigando testes onde não deveria triggar
  • Rodar as migrations no build
    • para conseguirmos subir tudo e ter o minimo de integração

@itsfpbtw itsfpbtw closed this by deleting the head repository May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: On PR
Development

Successfully merging this pull request may close these issues.

None yet

4 participants