Is there a python equivalent for RSpec to do TDD?

前端 未结 4 546
感动是毒
感动是毒 2021-01-30 09:00

I\'m looking for a test framework like Ruby\'s RSpec to do test driven development in Python. The advantage of a framework like RSpec is that it offers a DSL that lends itself w

4条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 09:44

    There is also https://testinfra.readthedocs.io/en/latest/ if you can use servespec which according to the website says

    Testinfra aims to be a Serverspec equivalent in python and is written as a plugin to the powerful Pytest test engine

    I'd much rather be doing python but I'm having to deal with ruby. C'est La Vie.

提交回复
热议问题