Filter Search Results
Content the user has created or edited.
Clear Filter

Showing 1-10 of 43 for testng

  • TestNG What functionality makes TestNG a better choice than JUnit 3/4? Groups Runtime configuration of which tests to run Dependent methods Flexible support … that do not How to handle different groups of tests separately with TestNG? http://wiki.community.objectware.no/display/smidigtonull
  • TestNG vs JUnit JUnit 4.12 Con: Categories is still experimental / inmature. Con: Asserts have parameters in the "wrong" order Pro: Use annotations and marker interfaces > better refactoring support. Pro: JUnit is more popular (I think) than TestNG, so toolsupport may be better. Con: Designed for unit tests only. E.g.
  • TestNG run only database tests example Annotation @Test(groups = "databaseproductA") TestNG config <test name="testngenvdb" verbose="3"> <groups> <run> <exclude name="disabled" /> <include name="databaseproductA" /> </run> </groups> <packages> <package name="com.company.producta."/> </packages> </test>
  • How to use TestNG groups to implement JigZaw The golden rule is that mvn clean install should ALWAYS return Build Successful. This means that the test suite … > <excludedGroups>$ </excludedGroups> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId
  • Code coverage using Surefire, TestNG, Jacoco and Sonar Goal mvn install should not require any external environment and should be fast. Possible to run … > <testNGArtifactName>org.testng:testng</testNGArtifactName> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id
  • Measurements and communication JigZaw is about risk reduction. It is important to measure progress to be able to adjust and improve PDCA http://en.wikipedia.org/wiki/PDCA. Indicators Number of tests Code coverage using Surefire, TestNG, Jacoco and Sonar Test coverage Code coverage using Surefire, TestNG, Jacoco
  • and the bug should be reproduced. Fix the bug and watch the test go green again. TestNG's DataProvider TestNG has support for parameterizing tests by using a DataProvider http://testng.org/javadoc/org/testng/annotations/DataProvider.html. This makes it really easy to do small scale datadriven testing. A simple example
  • How to do setup and tearDown for a group of tests. TestNG supports sorting of tests into groups. I can be convenient to be able to perform a group wide setup, before, and teardown, after, the tests in a group are run. This can be accomplished in testNG using the BeforeGroups annotation. Sort your tests into logical
  • Maven Test FAQ Table of Contents Which versions of Surefire and TestNG work well together? We recommend Surefire 2.4 and TestNG 5.7 or 5.8. This combination … > <dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>5.7</version> <scope>test</scope> <classifier>jdk15</classifier
  • Re: Test groups and phases

    Ser ut som verden er på vei i samme retning som oss; http://oreillytest.bea.com/pub/a/2006/09/testngcategorization.html