You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make sure to have the `ddev_version_constraint` directive, to keep the add-on users up to date.
70
70
* Finally, `pre_install_commands` and `post_install_commands` are supported. These can use the host-side environment variables documented [in DDEV docs](https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/#environment-variables-provided).
71
71
72
-
5. Update `tests/test.bats` to provide a reasonable test for your repository. In most cases, you only need to modify the `health_checks()` function. Tests will run automatically on every push to the repository, and periodically each night. Please make sure to address test failures when they happen. Others will be depending on you. Bats is a testing framework that just uses Bash. To run a Bats test locally, you have to install [bats-core](https://bats-core.readthedocs.io/en/stable/installation.html) and its [libraries](https://github.com/ztombol/bats-docs) first. Then you download your add-on, and finally run `bats ./tests/test.bats` within the root of the uncompressed directory. To learn more about Bats see the [documentation](https://bats-core.readthedocs.io/en/stable/).
72
+
5. Update `tests/test.bats` to provide a reasonable test for your repository:
73
+
74
+
* In most cases, you only need to modify the `health_checks()` function and update the `GITHUB_REPO` variable to match your repository.
75
+
* Tests will run automatically on every push to the repository, and periodically each night.
76
+
* Please make sure to address test failures when they happen. Others will be depending on you.
77
+
* Bats is a testing framework that just uses Bash. To run a Bats test locally, you have to install [bats-core](https://bats-core.readthedocs.io/en/stable/installation.html) and its [libraries](https://github.com/ztombol/bats-docs) first.
78
+
* Then you download your add-on, and finally run `bats ./tests/test.bats` within the root of the uncompressed directory.
79
+
* To learn more about Bats see the [documentation](https://bats-core.readthedocs.io/en/stable/).
80
+
* For complex test scenarios, you can use `tests/testdata/` directory to store test fixtures. See examples in:
0 commit comments