2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
11th March 2016, 12:33 PM
Super Moderator
 
Join Date: May 2012
Re: JUNIT testing

JUnit is a Regression Testing Framework used by developers to implement unit testing in Java and accelerate programming speed and increase the quality of code.

JUnit Framework can be easily integrated with either of the followings:

Eclipse

Ant

Maven

Prerequisites

You are going to use JUnit to handle all levels of Java projects development.

So it will be good if you have knowledge of software development using any programming language especially Java programming and software testing process

Features

JUnit test framework provides following important features

Fixtures

Test suites

Test runners

JUnit classes

1. Fixtures

Fixtures is a fixed state of a set of objects used as a baseline for running tests.

The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are run so that results are repeatable.

It includes

Setup () method which runs before every test invocation

Teardown () method which runs after every test method

2. Test suite

Test suite means bundle a few unit test cases and run it together.

In JUnit, both @RunWith and @Suite annotation are used to run the suite test.

3. Test runner

Test runner is used for executing the test cases.


Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 08:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4