Comments (4)
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:
- Com o comando
make test-integration
(se estiver no linux/mac), é o comando "oficial". - Se usar windows mas tiver docker atualizado, pode usar
docker compose up --abort-on-container-exit --build test-integration
. - 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.
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.
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.
Me avise se conseguiu executar os testes :D
from serverest.
Related Issues (20)
- Production tests failed - Deploy aborted
- Production tests failed - Deploy aborted HOT 1
- Erro no response body do metodo GET PRODUTO HOT 2
- Staging tests failed - Deploy aborted
- Production tests failed - Deploy aborted
- Production tests failed - Deploy aborted
- Implement test to validate if requests are being sent to moesif (use tool like wiremock or mountebank)
- Versão 2.26.11 não exclui carrinho após concluir compra HOT 2
- The automated release is failing 🚨 HOT 1
- Erro ao executar API localmente após atualizar para 2.26.17 HOT 4
- Staging tests failed - Deploy aborted
- Production tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
- Staging tests failed - Deploy aborted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverest.