Unit tests (CLI)
Last updated
Last updated
Use Diffblue Cover from a command line to create tests for your projects.
Before starting this learning path, we recommend that you first complete the Cover CLI Get Started path.
[2 min read]
A summary of how to write tests using Cover CLI.
[2 min read]
A summary of the core Cover CLI commands and arguments.
[29 min watch]
Get a complete overview of Cover CLI with this tutorial video.
[reference]
Reference topic - details of all available commands and arguments.
[5 min read]
Unit test examples of varying complexity.
[9 topics]
Making sure your project configuration and dependencies meet the requirements needed to use Diffblue Cover.
[5 min read]
Diffblue Cover's preflight features for checking the suitability of your environment.
[5 reference topics]
Reference details - Diffblue Cover output codes, messages, and descriptions.
[reference topic]
Reference details - Diffblue Cover specifications and requirements.
[5 reference topics]
Reference details - Diffblue Cover output codes, messages, and descriptions.
[12 topics]
Useful hints and tips to help resolve a range of output codes.
[4 min read]
Creating partial (incomplete) tests.
[22 min watch]
Demonstrating how to provide custom inputs to optimize test creation.
[12 min read]
Provide custom inputs to optimize test creation.
[31 min watch]
Demonstrating how to provide a custom base class to optimize test creation.
[6 min read]
Provide a custom base class to optimize test creation.
[4 min read]
Test naming config and defaults.
[4 min read]
Configure the format of tests written by Cover CLI.
[2 min read]
Test method ordering in test classes.
[4 min read]
Use Cover Refactor to automatically suggest and apply refactorings to your code to help improve test coverage.
Manage and maintain Cover CLI.
Improve and manage test coverage.
A range of tutorials covering topics such as implementing a code change and working with Kotlin projects.
Writing Tests
Command Summary
Cover CLI Overview
Commands & Arguments
Test Examples
Project Configuration & Dependencies
Preflight Checks
Output Codes
Specs & Reqs
Output Codes
Working With Output Codes
Partial Tests
Custom Inputs
Custom Inputs
Custom Test Setup
Custom Test Setup
Test Naming
Test Formatting
Test Insertion Order
Refactor
Cover CLI Admin
Test Coverage
Tutorials