Java – writing JUnit tests in Jython

I wonder if anyone uses Jython to write JUnit tests? The reason for this is that I try to find a concise way to test my soap based web service without generating any code The reason for adhering to JUnit is that I hope to eventually integrate testing into an ant - based CI system

I've read the article http://www.devx.com/java/Article/26602/1954 , it describes what I need Unfortunately, I can't make it work

Any ideas and experience in this area will be of great help

Thank you, Alex

Solution

I prefer the reverse: write tests using Python unittest to test Java code in Python Then, you can use doctests to test Java code, which is very concise

Then you can try to integrate into ant by creating a task such as ant Run 'nose' to find and execute tests

Or you can decide to use Hudson for continuous integration (which is a step longer than simple ant) and never look back...;)

This and more good articles (including mention of Hudson's Jython plug-in): http://www.jython.org/jythonbook/en/1.0/TestingIntegration.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>