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
How to test software with dynamic requirements
Test metrics and use case coverage during testing
How to learn white box testing
How to determine test coverage
Software testing best practices vary by context
Effective Web page testing
How testers can practice bug advocacy with developers
Functional testing: Unit testing, integration testing and beyond
Soak testing and performance testing terms
Performance testing SOA

Software unit testing
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
Better software through debugging and unit testing -- Unit testing, Extreme Programming and TDD
Better software through debugging and unit testing -- Other useful resources
Better software through debugging and unit testing

Software testing tools and frameworks
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
Automated functional testing boosts productivity at Arizona Federal
Brief: Sigma testing tool integrates with VMware virtual lab
Borland renews Silk test suite with RIA test scripting capability
Zephyr facilitates test management
iTKO integrates testing suite with performance monitoring tool

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

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