Home > Ask the Software Quality Experts > Software Testing and Quality Assurance Questions & Answers > How to approach JUnit for unit testing
Ask The Software Quality Expert: Questions & Answers
EMAIL THIS

How to approach JUnit for unit testing

Mike Kelly EXPERT RESPONSE FROM: Mike Kelly

Pose a Question
Other Software Quality Categories
Meet all Software Quality Experts
Become an Expert for this site


Software quality news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 27 November 2007
I like JUnit from what I hear. I do not know how to use it. Please kindly advise me how to use it.

>
EXPERT RESPONSE

In 2005 Dana Spears and I held a workshop on unit testing in Indianapolis. I published some of the findings of that workshop here. At the end of that article, I recommended a number of resources for getting started. That list included Kent Beck's Test-Driven Development: By Example (Addison-Wesley, 2002, ISBN 0321146530) and TestDriven.com.

Software testing resources:
Building beautiful software tests around JUnit

Unit testing critical for improving software quality

Find software bugs, defects using code coverage

Given that you asked specifically about JUnit, I would also recommend the JUnit documentation on SourceForge. A great example which walks you through specific tests (follow along in JUnit as you read it) is JUnit Test Infected: Programmers Love Writing Tests. Once you've read a bit about it, the best way to learn is to start doing it. Just start. The more you do it, the easier it gets.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Software Testing and Quality Assurance
Should you retest closed defects during regression testing?
Common mistakes of new software testers
How to test an application's scalability, performance
Integration testing: Is it black box or white box testing?
Test strategy document vs. an acceptance test plan
The future of software testing
Quality assurance testing vs. user acceptance testing
Eliminating testing environment troubles
How to use tools for system integration testing
How to match the test environment to the production environment

Software unit testing
The Art of Debugging with GDB, DDD, and Eclipse -- Ch. 1
An approach to integration testing
Clean Code: A Handbook of Agile Software Craftsmanship, Chapter 1 -- What Is Clean Code?
Unit, integration testing first steps toward SOA quality
Functional testing: Unit testing, integration testing and beyond
Successful test-driven development (TDD) with external systems
Unit testing in the enterprise: Five common myths dispelled
Six functional tests to ensure software quality
Parasoft's Adam Kolawa: Software quality is a continuous process
Better software through debugging and unit testing -- Unit testing basics

Software testing tools and frameworks
How to use tools for system integration testing
The Art of Debugging with GDB, DDD, and Eclipse -- Ch. 1
Choosing code coverage tools
Virtual environments ease software development, testing
Rewind that software bug!
Functional testing of Web services
On-demand software testing service pays off for three startups
Software testing in a virtual environment
Dynamic analysis tool from Coverity looks at concurrency defects
BMC tool helps resolve problems in Java and .NET applications

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
mock object  (SearchSoftwareQuality.com)
unit testing  (SearchSoftwareQuality.com)
V-Model  (SearchSoftwareQuality.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Software Quality - Software Maintenance, Software Requirements, Software Standards
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2006 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts