Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add local test qdt #488

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion docs/development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Complete it by installing tests requirements:
python -m pip install -U -r requirements/testing.txt
```

## Run
## Run unit tests

Simply run Pytest:

Expand All @@ -34,3 +34,26 @@ It's also possible to run an individual test:
```sh
python -m unittest tests.test_qplugin_object.TestQgisPluginObject.test_profile_load_from_json_basic
```

## Try current QDT version

Let's say you're working on a branch and you want to run QDT against your changes.
Make the following changes to the `scenario.qdt.yml` to point to the current folder:

```yaml
[...]
steps:
- name: Download profiles from remote git repository
uses: qprofiles-downloader
with:
source: file://.
protocol: git_local
[...]
```

Every time you edit the profiles stored in the `examples` folder, don't forget to commit to your local history:

```sh
git commit examples/ -m "wip"
QGIS_CUSTOM_CONFIG_PATH=tests/fixtures/tmp/ qdt -vv -s scenario.qdt.yml
```