How to test coverage properly with Django + Nose

后端 未结 5 1487
走了就别回头了
走了就别回头了 2020-12-29 08:54

Currently have a project configured to run coverage via Django\'s manage command like so:

./manage.py test --with-coverage --cover-package=notify --cover-bra         


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 09:38

    I've managed to get this working including a

    import coverage
    

    on top of my manage.py file (I'm using Flask instead but having the very same issue)

    My problem is that it works from console but Jenkins is not aware of it and keeps on saying that those imports are out of the tests...

    Any idea?

提交回复
热议问题