From f435f3b2e973ab71b6e110a5b6327a6ac0cfa2be Mon Sep 17 00:00:00 2001
From: Jonatan Pettersson <jonatan.pettersson@pm.me>
Date: Sat, 11 Mar 2023 15:03:19 +0100
Subject: [PATCH] Document how to run tests (#6268)

Co-authored-by: Jonatan Pettersson <jonatan.pettersson@proton.me>
---
 docs/CONTRIBUTING.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md
index d8c15c72..982b2237 100644
--- a/docs/CONTRIBUTING.md
+++ b/docs/CONTRIBUTING.md
@@ -33,7 +33,13 @@ inside the project. We use [xtask][xtask] as an ad-hoc task runner and
 thus do not require any dependencies other than `cargo` (You don't have
 to `cargo install` anything either).
 
-# Integration tests
+# Testing
+
+## Unit tests/Documentation tests
+
+Run `cargo test --workspace` to run unit tests and documentation tests in all packages.
+
+## Integration tests
 
 Integration tests for helix-term can be run with `cargo integration-test`. Code
 contributors are strongly encouraged to write integration tests for their code.