GitLab CI passes the test even with error

0

I'm working with python / flask in an application. I want to test the CI of GitLab, so I did a test that generates an error, just to see how it would work. But, it happens that the CI passes the Job even giving error. can you help me?

    
asked by anonymous 22.09.2018 / 15:27

1 answer

0

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

    
22.09.2018 / 18:13