Files
Cactidocumentation/Development-and-Testing.md
T
2026-12-03 00:15:32 -08:00

50 lines
1.8 KiB
Markdown

# Development and Testing
## Choose the Source and Version
Use the branch you intend to change in the application, plugin, and manual
repositories. This chapter describes Cacti's 1.2.x branch.
Read its [Composer requirements][composer] before setting up PHP. For a
plugin, check the supported Cacti versions and dependencies in its `INFO`.
## Theme and Plugin Checks
The **Cacti 1.2 theme style regressions** workflow uses PHP 8.2, Node 22,
and Chromium. From a checkout of the Cacti `1.2.x` branch, run:
```console
cd tests/e2e
npm ci --ignore-scripts
node node_modules/@playwright/test/cli.js install chromium
node node_modules/@playwright/test/cli.js test --config=playwright.config.js \
theme-style-regressions.spec.js theme-css.spec.js --workers=1
```
These tests check theme styles in a browser. For changes to plugin behavior,
also install the plugin on a disposable 1.2.x system, enable it, visit its
pages with the relevant user permissions, and exercise the affected action.
## Read Actions Results
Open **Actions > Cacti 1.2 theme style regressions** and select **Theme CSS
browser contracts**. The workflow runs on relevant changes to `1.2.x` and
supports a manual run. Inspect the failing test and browser assertion to
identify the theme, selector, and expected value.
The [workflow definition][workflow] lists its triggers, dependencies, and
exact commands.
## Documentation Checks
Run the spelling, Markdown, and navigation checks from the documentation
checkout. Render the manual before submitting changes to examples, links, or
screenshots. See [Documentation Standards](Standards-Documentation.md).
[composer]: https://github.com/Cacti/cacti/blob/1.2.x/composer.json
[workflow]:
<https://github.com/Cacti/cacti/blob/1.2.x/.github/workflows/theme-style-regressions.yml>
---
Copyright (c) 2004-2026 The Cacti Group