From 9eccaee57693a80083143b7aadac5c298e255a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 7 Oct 2024 14:37:10 +0100 Subject: [PATCH] devenv-run-tests: run examples+tests by default --- devenv-run-tests/src/main.rs | 2 +- docs/community/contributing.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devenv-run-tests/src/main.rs b/devenv-run-tests/src/main.rs index 64f4e2396..cac4fa523 100644 --- a/devenv-run-tests/src/main.rs +++ b/devenv-run-tests/src/main.rs @@ -23,7 +23,7 @@ struct Args { )] override_input: Vec, - #[clap(value_parser, required = true)] + #[clap(value_parser, default_values = vec!["examples", "tests"])] directories: Vec, } diff --git a/docs/community/contributing.md b/docs/community/contributing.md index 1a5717014..f7a19397e 100644 --- a/docs/community/contributing.md +++ b/docs/community/contributing.md @@ -38,13 +38,13 @@ of source code directory by calling `/result/bin/dev - Examples are automatically tested on CI and are the best way to work on developing new modules, see `examples/` and `tests/` - Documentation is in `docs/`. - To run a development server, run `devenv up`. -- To run a test, run `devenv-run-tests --only examples`. +- To run a test from `examples/` or `tests/`, run `devenv-run-tests --only `. ## Contributing language improvements Language integration happens in stages. We welcome even the most basic support for getting started. -The most basic language support starts with the `languages.*.enable` flag, which turns on basic tooling. +The most basic language support starts with the `languages.*.enable` flag, which turns on basic tooling. For an example, see `src/modules/languages/elm.nix`. The next step is to make the tooling customizable, so the versions can be overridden.