Sam Frampton
11/11/2021, 10:49 PMERROR: /bin/sh: 1: newman: not found
- I'm trying to navigate to my integration test file path and then run newman command. I have newman as dev dependancy and I've tried installing in a hook as well.
What's the recommended way to trigger integration tests in after_deploy hook for seed?
after_deploy:
- cd backend/test/integration/collections
- newman run test.postman_collection.json
Frank
newman
installed? Can you try this:
after_deploy:
- npm install -g newman
- cd backend/test/integration/collections
- newman run test.postman_collection.json
Sam Frampton
11/12/2021, 9:01 AMFrank
after_deploy:
- npm install -g newman
- cd backend/test/integration/collections && newman run test.postman_collection.json
Sam Frampton
11/12/2021, 10:12 AMSam Frampton
11/12/2021, 10:12 AM