advertisement
Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
advertisement
 

Write Eclipse JUnit Tests in Jython : Page 4

Eclipse integrates the JUnit framework to enable seamless test integration in Java, and Python is a great language for writing tests. Learn how to write Eclipse JUnit tests in Jython (Python for Java).


advertisement
Fast, Easy Unit Tests
Once these setup steps are done, you will find that writing unit tests with Jython is much faster and requires less code than with Java. The original goal of Python was to be a scripting language; Jython enables you to script your Java applications, and it eases the task of writing tests.

What's Next?
This article demonstrated how to integrate Jython tests into Eclipse and its JUnit plugin. It could have shown how to integrate it into an Ant task, or any other tool that enables test running. That technology improves greatly the programmer's productivity.

Now, wouldn't enabling C-Python testing from the JUnit Eclipse framework be great? It would enable Eclipse to become an IDE with cross-language, on-the-fly testing integration. It's not as difficult as it seems; it requires code generation, but that's a topic for another article.

Amaury Forgeot d'Arc is responsible of software architecture at Ubitrade, a French-based developer of software solutions for financial players. He has been developing Back Office financial software since 1996. He likes creating tools that put fun in programming.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

advertisement
Sitemap