Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage JUnit Content on InfoQ

  • Interview: Erich Gamma Discusses Jazz, Eclipse, JUnit and Design Patterns

    In this interview from QCon London 2008, Erich Gamma discusses the Jazz project, why Eclipse has been successful, the strict Eclipse release schedule, JUnit, Design Patterns, how to identify a design pattern, design patterns and the 'Don't Repeat Yourself' principle, the design pattern community, and whether dependency injection is a design pattern.

  • JUnit Still Not Dead

    JUnit has recently released version 4.5 of the infamous Java testing framework, but is it enough to keep the project in the spotlight? Read more to find what's being talked about regarding the future of JUnit.

  • Continuous Integration and Code Inspection with Hudson and FindBugs

    A recent article published in IBM developerWorks talks about automating Continuous Integration and Code Inspection tasks in a build process using open source tools. It explains how to install and configure Hudson server with Subversion, Ant, and software inspection tools like FindBugs and PMD to create a build process with continuous feedback on test results and defects.

  • Article: Iterative, Automated and Continuous Performance

    A new InfoQ article looks at evaluating performance in an iterative and continuous manner.

  • Test Driven Code Reuse

    Code reuse has been the holy grail of software development for a long time. Historically we've tried to achieve code reuse through abstractions and frameworks, which came with their own technical debt. There is now a novel approach that leverages the power of search tools and automated developer tests to search open-source code for matches against interface and behavior.

  • Presentation: System Integration Testing with Spring

    Spring provides a holistic solution that makes your application's use cases and subsystems easier to test. The emphasis is on testing outside a JEE server or container, thus greatly improving productivity. In this presentation, Spring Creator Rod Johnson discusses integration testing and the support that Spring provides for it.

  • Book Excerpt: How to Improve your Continuous Testing

    Continuous Integration has become a standard development best practice - but it's not always done well. Tests take up much of an application's build time, and poorly constructed test suites can cause long builds, whereupon teams start to circumvent agreed-upon CI practices just get the time to code. InfoQ presents advice and examples in Chapter 6: Continuous Testing from a new CI book.

  • JUnit 4.4 Released

    The release of JUnit 4.4 sees the inclusion of the assertThat method, offering easier reading and new flexibility to the JUnit library.

  • Article: Unit-Testing XML

    In this exclusive InfoQ article, Stefan Bodewig explains how to use the XMLUnit Java framework to write tests in the presence of XML.

  • Unit Testing Tips from Google

    The QA engineers at Google share their unit testing advice in an ongoing series titled "Testing on the Toilet." The latest installment tackles a common problem: how can the unit tests themselves be refactored without accidentally invalidating the tests?

  • Understanding Legacy Code with Characterization Testing

    Alberto Savoia has written a series of four articles describing "characterization testing" - the process of writing unit tests to understand and work with legacy code.

  • Gauntlet: Borland's Continous Integration server with defect isolation and trending

    Borland in early October released a beta of Gauntlet continous integration server. Like any continous integration server, Gauntlet automates build and testing but also provides change sandboxing, reporting and trending, failure correlation, replay alongside existing repositories, and easy access to build, test, and run previous project versions.

  • TestNG concluded more suitable for large-scale testing than JUnit 4

    Andrew Glover has compared TestNG and JUnit 4, taking a look at some features that TestNG has over JUnit 4. Andrew quickly takes the position that TestNG is better for large scale testing, despite JUnit 4's recent addition of annotations and "dramatically relaxed structural rules for test case authoring."

  • TestNG 5.0 Released

    Cedric Beust has announced the launch of TestNG, the popular Testing framework and alternative to JUnit. Alexandru Popescu (TestNG co-founder) is also InfoQ's Chief Architect. TestNG 5 improves configuration, reporting, ease of use, and bug reporting.