Parasoft Logo Register | Log in  /  Contact us  /  Blog  /  Support  /  Downloads  /  info@parasoft.com  /  888-305-0041  /  Language »

Unit Testing

Test case generation, execution, optimization, management, coverage

  • Unit testing industry leader since 1997
  • Rapidly build a high-coverage test suite
  • Easily extend and customize generated tests
  • Expose functional problems and crash-causing defects
  • Remove barriers to creating/maintaining robust test suites
  • Integrated with static analysis, code review — more

Unit Testing Example

Unit Test Creation

Parasoft Test automatically analyzes code then generates a high-coverage test suite with complete xUnit-format tests. These extensible and reusable tests capture existing application behavior for a regression safety net. They can also use corner case conditions to expose defects.

Additionally, realistic functional tests can be created via "tracing." You exercise the application behavior you want tests to capture, then we automatically generate unit test cases that represent the actual paths and data used. The test suite can be run independent of the complete system to isolate code behavior changes, reduce setup complexities, and make it practical to execute on a daily basis.


Unit Test Optimization

Parasoft Test provides a variety of technologies to help you extend the automatically-generated test cases and get more from your existing (e.g., TDD) test cases:

  • Easy test case extension.
  • An object repository and flexible stubs framework to make tests more realistic.
  • Data-driven testing with different sets of data (automatically-generated or from a data source).
  • Integrated coverage tracking.
  • Automated distribution of test failures to the appropriate code authors.
  • Runtime error detection and debugger integration during test execution.
  • Requirements traceability and detailed reporting for auditability.
Unit Testing Tool

Unit Testing for C++

Embedded Unit Testing on the Host, Target, Simulator

Parasoft Test automates the complete test execution flow, including test case generation, cross-compilation, deployment, execution, and loading results (including coverage) back into the GUI. The test execution sequence is completely customizable.

Testing can be driven interactively from the GUI or from the command line for automated test execution, as well as batch regression testing.

In the interactive mode, users can run tests individually or in selected groups for easy debugging or validation. For batch execution, tests can be grouped based either on the user code they are liked with, or their name or location on disk.

The test execution sequence is fully customizable. In addition to using the built-in test automation, users can incorporate custom test scripts and shell commands to fit the tool into their specific build and test environment.


Multi-Metric Test Coverage Analysis

A multi-metric test coverage analyzer—including line, statement, block, decision/branch, path, and MC/DC, and condition coverage—reports coverage metrics as well as graphically displays tested vs. untested code via annotated source code. Back tracing from coverage elements to the corresponding test cases enables users to analyze test results and extend the test cases for better coverage, with higher efficiency.

Parasoft Test tracks coverage at the unit, integration, and system (manual/scripted) test levels, and can deliver integrated reporting for all tested levels.

Multi-Metric Test Coverage Analysis

Architect Dashboard

Beyond Unit Testing

Unit testing is a critical component of a comprehensive quality process...but it is just one component. The most effective quality processes involve a combination of test and analysis practices embedded throughout the SDLC.

That's why Parasoft Test's unit testing technologies are fully integrated with a broad range of complementary capabilities ranging from peer review, to static code analysis, to end-to-end functional and load testing, to service virtualization.

For organizations ready to take the next step towards ensuring that quality software is produced consistently and efficiently, Parasoft Development Testing Platform integrates policy-driven project management with Parasoft Test's Automated Defect Prevention and end-to-end QA testing. This ensures predictable project outcomes while driving unprecedented levels of productivity and application quality.


Unit Testing for C/C++, Java, .NET

For details on how specific Parasoft Test products implement unit testing, see:

These comprehensive Development Testing products integrate unit testing, with code coverage analysis, static code analysis, peer code analysis, runtime error detection, traceability, and more.

Google+RSSBlogTwitterFacebookWikipediaLinked In Copyright © 1996-2014 Parasoft   |  Privacy Policy |  Site Map