# Writing tests

To write tests using Cover CLI:

* To write tests for your entire project, open Windows PowerShell (Windows) or Terminal (macOS/Linux), navigate to your project, and enter the command `dcover create`
* To restrict tests to an individual package, class, or method, specify one or more entry points on the command line using `dcover create [<entryPoint>...]` - for example, `dcover create io.diffblue.corebanking.account.Account.`
* For a quick summary of core Cover CLI commands, see [Command summary](/features/cover-cli/writing-tests/command-summary.md) . For full details - every command, every argument, every option - see [Commands & Arguments](/features/cover-cli/commands-and-arguments.md).
* In general, `dcover create` will write complete tests for your methods, classes, modules, and projects. However, Cover is not always able to create a complete test, instead it may only be able to create partial tests - see [Creating partial tests](/features/cover-cli/writing-tests/partial-tests.md).
* Once Diffblue Cover starts to run, you can cancel the operation at any point by pressing **`CTRL-C`**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/features/cover-cli/writing-tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
