From 5b0ae7eab68f2642de88cd6c30de961460a518a8 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Sat, 27 Nov 2021 12:58:36 -0700 Subject: [PATCH] =?UTF-8?q?docs:=20Update=20developer=20guide=20?= =?UTF-8?q?=F0=9F=93=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/developer/guide.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/developer/guide.md b/docs/developer/guide.md index 040fe75..25c98e4 100644 --- a/docs/developer/guide.md +++ b/docs/developer/guide.md @@ -2,7 +2,7 @@ ## Running tests -``` +```bash git clone https://github.com/kdheepak/taskwarrior-tui cd taskwarrior-tui @@ -14,13 +14,13 @@ cargo test ## Running debug build -``` +```bash cargo run ``` ## Running release build -``` +```bash cargo run --release ``` @@ -28,10 +28,22 @@ cargo run --release If you want to test the `test_taskwarrior_timing` function in `src/app.rs`: -``` +```bash cargo test -- app::tests::test_taskwarrior_timing --nocapture ``` +## Getting logs + +```bash +export TASKWARRIOR_TUI_LOG_LEVEL=debug +taskwarrior-tui + +# OR + +export TASKWARRIOR_TUI_LOG_LEVEL=trace +cargo run +``` + ## Contributing to documentation See `docs/` folder in the repository: