TDD with IronPython

Can anyone recommend tools or articles to help me find out how the TDP IronPython code is?

+3
source share
2 answers

The current version of IronPython (v2.0) does not seem to be consistent with the nose. This may have been fixed in 2.6, but I have not yet repeated my test to figure it out. So, so far you are only an option - if someone has not experimented with one of the other python testing frameworks - pyunit - this is just your choice.

You can also check out the fake fake framework created by Michael Foud, which pretty much guarantees that it will work perfectly with IronPython. If I remember correctly, he even shows some examples in his IronPython book in action.

Finally, you should probably check out this link from the cheesecake project for a few other tools that might interest you.

+3
source

IronPython has a good unit testing system inherited from Python called PyUnit.

Trial tests using PyUnit are simple:

  • import unittest class
  • Create a class that inherits unittest.TestCase (test fixture)
  • Write test methods using assertions methods

:

unittest.py, nose, unittest. .

+3

Source: https://habr.com/ru/post/1717009/