Jump to content
Sign in to follow this  

TestNG vs jUnit

Qual a framework para teste unitários em Java que é mais utilizada no mundo?  

3 members have voted

  1. 1. Qual a framework para teste unitários em Java que é mais utilizada no mundo?

    • TestNG
    • jUnit 3
    • jUnit 4
    • (outra) [deixa a tua opinião]

Recommended Posts


Viva Pessoal,

Estou a tentar descobrir qual a framework para teste unitários em Java que é mais utilizada no mundo, já revirei os resultados do Google para uma pergunta destas, mas até ao momento ainda não encontrei nada.....  🤔

Por isso, peço para deixarem a vossa opinião em relação a este assunto....  ;)


JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit.

Página Oficial: http://www.junit.org/home

Wikipedia: http://en.wikipedia.org/wiki/JUnit

An early look at JUnit 4


TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:

  • Annotations.
  • Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc...).
  • Test that your code is multithread safe.
  • Flexible test configuration.
  • Support for data-driven testing (with @DataProvider).
  • Support for parameters.
  • Powerful execution model (no more TestSuite).
  • Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.

TestNG is designed to cover all categories of tests:  unit, functional, end-to-end, integration, etc...

Página Oficial: http://testng.org/doc/index.html

Wikipedia: http://en.wikipedia.org/wiki/TestNG


Alguns sites que encontrei sobre JUnit vs TestNG:

PS: Peço também aos moderadores do fórum, para divulgarem esta poll no Twitter e Facebook do fórum....

cumps  :D

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.