Giter Site home page Giter Site logo

Comments (4)

PauloGoncalvesBH avatar PauloGoncalvesBH commented on May 28, 2024 1

oi @edumaxsantos, tudo bem?

Eu utilizo o docker compose para executar os testes, então nele já tem definido a variábel de ambiente TEST_TYPE.
Você pode executar o teste das seguintes maneiras:

  1. Com o comando make test-integration (se estiver no linux/mac), é o comando "oficial".
  2. Se usar windows mas tiver docker atualizado, pode usar docker compose up --abort-on-container-exit --build test-integration.
  3. Caso queira ir direto pelo comando npm, pode rodar dessa maneira em qualquer SO: TEST_TYPE=integration npm run test:integration

Para saber mais pode ver esse material: https://github.com/ServeRest/ServeRest/blob/trunk/.github/CONTRIBUTING.md#-testes
E olhar os arquivos Makefile e docker-compose.yml.

from serverest.

edumaxsantos avatar edumaxsantos commented on May 28, 2024 1

Consegui sim.

Ontem mesmo consegui alterando os scripts para adicionar a variável de ambiente antes da execução.

Agora com essa forma utilizando o docker, removi essas alterações e continuarei a utilizar por meio do docker, mantendo assim o padrão.

Estou fechando a issue, pois o problema foi solucionado.

Obrigado pela ajuda, Paulo!

from serverest.

edumaxsantos avatar edumaxsantos commented on May 28, 2024

O problema era a falta de definição da variável de ambiente TEST_TYPE como integration.

Não seria bom se ao executarmos o comando de npm run test:integration essa variável de ambiente já seja definida também?

from serverest.

PauloGoncalvesBH avatar PauloGoncalvesBH commented on May 28, 2024

Me avise se conseguiu executar os testes :D

from serverest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.