Integration of tests written in Python and tests in C # in one solid solution

What I'm trying to do is to combine two approaches, two structures into one continuous area, a process ...

  • I have a bunch of tests in python with the self-written library TestRunner over proboscis , which gave me a good way to write my own implementation of the test result (in which I use jinja ). This structure is now solid. These tests are for tesing UI (using Selenium ) on an ASP.NET site.

  • On the other hand, I have to write tests for business logic. Apparently, it would be correct to use NUnit or TestDriven.NET for C# .

Could you give me a hint, a hint, how can I integrate these two approaches into one final solution? Maybe the answer would be just to install the CI server, donno ...

Please note: the reason I use Python for the ASP.Net portal is the flexibility and the ability to create any custom test runner, test loader, test discovery, etc.

PS Using IronPython is not an option for me.

PPS For clarity: proboscis is a python library that allows you to establish the testing order and dependencies of the selected test . And these two options are requirements!

Thank you in advance!

+4
source share
1 answer

I do not know if you can put them in one runner or process. I am not familiar with Python either. It seems to me that the tests written in Python are more at a high level. Acceptance tests or integration tests or whatever you want to call. And NUnit is the unit test level. Therefore, I would suggest running unit tests first and passing them to Python. You should be able to integrate this into your build script. And, as you said, if you can run this on the CI server, this will be my preferred approach in your situation.

+1
source

All Articles