Gitlab CI passes the test even with error

Asked

Viewed 60 times

0

I’m working with python/flask in an application. I want to test the Gitlab CI, so I ran a test that generates an error, just to see how it works. But, it turns out that the IC passes the Job even giving error. They could help me? Essa é a mensagem do CI

Esse é o .gitlab-ci.yml Esse é o comando que criei pra rodar todos os tests da pasta 'tests'

1 answer

0


I was able to solve the problem by changing the command of . gitlab-ci.yml. The "python3 manager.py test", I switched to "python3 -m unittest Discover -s tests/". Since "tests/" is my test folder.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.