> For the complete documentation index, see [llms.txt](https://cover-docs.diffblue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cover-docs.diffblue.com/get-started/diffblue-learning/developer/unit-tests-cli.md).

# Unit tests (CLI)

Use Diffblue Cover from a command line to create tests for your projects.

{% hint style="info" %}
Before starting this learning path, we recommend that you first complete the [Cover CLI Get Started](/get-started/diffblue-learning/get-started/cover-cli-command-line.md) path.
{% endhint %}

## Start here...

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Writing Tests</strong></td><td>[2 min read]</td><td>A summary of how to write tests using Cover CLI.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests.md">Writing tests</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Command Summary</strong></td><td>[2 min read]</td><td>A summary of the core Cover CLI commands and arguments.</td><td><strong>Title</strong></td><td></td><td><a href="/features/cover-cli/writing-tests/command-summary.md">Command summary</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-7119765c9ef09cc50daef52e6150fc08a7e2135f%2FeLearning3D.jpg?alt=media" alt="" data-size="original"> <strong>Cover CLI Overview</strong></td><td>[29 min watch]</td><td>Get a complete overview of Cover CLI with this tutorial video.</td><td></td><td></td><td><a href="https://youtu.be/LPHw0JNcMyw">https://youtu.be/LPHw0JNcMyw</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Commands &#x26; Arguments</strong></td><td>[reference]</td><td>Reference topic - details of all available commands and arguments.</td><td><strong>Title</strong></td><td></td><td><a href="/features/cover-cli/commands-and-arguments.md">Commands &amp; Arguments</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Test Examples</strong></td><td>[5 min read]</td><td>Unit test examples of varying complexity.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/test-examples.md">Test examples</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Project Configuration &#x26; Dependencies</strong></td><td>[9 topics]</td><td>Making sure your project configuration and dependencies meet the requirements needed to use Diffblue Cover.</td><td></td><td></td><td><a href="/features/cover-cli/project-configuration.md">Project configuration</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Preflight Checks</strong></td><td>[5 min read]</td><td>Diffblue Cover's preflight features for checking the suitability of your environment.</td><td></td><td></td><td><a href="/features/cover-cli/project-configuration/preflight.md">Preflight checks</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Output Codes</strong></td><td>[5 reference topics]</td><td>Reference details - Diffblue Cover output codes, messages, and descriptions.</td><td></td><td></td><td><a href="/features/output-codes.md">Output Codes</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Specs &#x26; Reqs</strong></td><td>[reference topic]</td><td>Reference details - Diffblue Cover specifications and requirements.</td><td></td><td></td><td><a href="/get-started/specs-and-reqs.md">Specs &amp; Reqs</a></td></tr></tbody></table>

## Know more...

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Output Codes</strong></td><td>[5 reference topics]</td><td>Reference details - Diffblue Cover output codes, messages, and descriptions.</td><td></td><td></td><td><a href="/features/output-codes.md">Output Codes</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Working With Output Codes</strong></td><td>[12 topics]</td><td>Useful hints and tips to help resolve a range of output codes.</td><td><strong>Title</strong></td><td></td><td><a href="/features/output-codes/working-with-output-codes.md">Working with output codes</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Partial Tests</strong></td><td>[4 min read]</td><td>Creating partial (incomplete) tests.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/partial-tests.md">Creating partial tests</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-7119765c9ef09cc50daef52e6150fc08a7e2135f%2FeLearning3D.jpg?alt=media" alt="" data-size="original"> <strong>Custom Inputs</strong></td><td>[22 min watch]</td><td>Demonstrating how to provide custom inputs to optimize test creation.</td><td><strong>Title</strong></td><td></td><td><a href="https://youtu.be/1xRWbErG92c">https://youtu.be/1xRWbErG92c</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Custom Inputs</strong></td><td>[12 min read]</td><td>Provide custom inputs to optimize test creation.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/custom-inputs.md">Customizing test inputs</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-7119765c9ef09cc50daef52e6150fc08a7e2135f%2FeLearning3D.jpg?alt=media" alt="" data-size="original"> <strong>Custom Test Setup</strong></td><td>[31 min watch]</td><td>Demonstrating how to provide a custom base class to optimize test creation.</td><td></td><td></td><td><a href="https://youtu.be/TJnx2xPlL_4">https://youtu.be/TJnx2xPlL_4</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Custom Test Setup</strong></td><td>[6 min read]</td><td>Provide a custom base class to optimize test creation.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/custom-test-setup.md">Customizing test setup</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Test Naming</strong></td><td>[4 min read]</td><td>Test naming config and defaults.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/test-naming.md">Test naming</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Test Formatting</strong></td><td>[4 min read]</td><td>Configure the format of tests written by Cover CLI.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/test-formatting.md">Test formatting</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Test Insertion Order</strong></td><td>[2 min read]</td><td>Test method ordering in test classes.</td><td></td><td></td><td><a href="/features/cover-cli/writing-tests/insertion-order.md">Test insertion order</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Refactor</strong></td><td>[4 min read]</td><td>Use Cover Refactor to automatically suggest and apply refactorings to your code to help improve test coverage.</td><td></td><td></td><td><a href="/features/cover-refactor/get-started-cover-refactor.md">Get started - Cover Refactor</a></td></tr></tbody></table>

## Next steps...

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-ec9d8454f2958c5e61b6a84c414655ba4f2ec5f1%2FPath3D.jpg?alt=media" alt="" data-size="original"> <strong>Cover CLI Admin</strong></td><td>Manage and maintain Cover CLI.</td><td></td><td></td><td><a href="/get-started/diffblue-learning/administrator/admin-cli.md">Admin - CLI</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-ec9d8454f2958c5e61b6a84c414655ba4f2ec5f1%2FPath3D.jpg?alt=media" alt="" data-size="original"> <strong>Test Coverage</strong></td><td>Improve and manage test coverage.</td><td></td><td></td><td><a href="/get-started/diffblue-learning/developer/test-coverage.md">Test coverage</a></td></tr><tr><td><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-5a3fd3a9fdcf22c2c65fa8c1034a3da431afad7a%2FDocs3D.jpg?alt=media" alt="" data-size="original"> <strong>Tutorials</strong></td><td>A range of tutorials covering topics such as implementing a code change and working with Kotlin projects.</td><td></td><td></td><td><a href="/features/tutorials.md">Tutorials</a></td></tr></tbody></table>
