Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.24 KB

Development-and-Testing.md

File metadata and controls

61 lines (45 loc) · 2.24 KB

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.3 development branch. Read its Composer requirements before setting up PHP. For a plugin, check the supported Cacti versions and dependencies in its INFO.

Theme and Plugin Checks

Use Node 22 and the locked dependencies in tests/e2e. From a full Git checkout of Cacti, run the two core Chromium suites:

cd tests/e2e
npm ci --ignore-scripts
npx --no-install playwright install chromium
CACTI_THEME_COVERAGE=1 npx --no-install playwright test \
  tests/develop-theme-correctness.spec.ts tests/develop-theme-cleanup.spec.ts \
  --project=chromium

For plugin styling, the workflow checks out the pinned revisions of Thold, MacTrack, Syslog, Alarm Manager, HMIB, Flowview, and Monitor into .theme-plugins/<name> at the root of the Cacti checkout. With those fixtures in place, run the following from tests/e2e.

npx --no-install playwright test tests/develop-plugin-theme-compatibility.spec.ts \
  --project=chromium --output plugin-compat-results

The tests render components with fixture data and plugin stylesheets. Exercise installation, permissions, and data collection separately when changing those behaviors.

Read Actions Results

Open Actions > Develop theme correctness and select the chromium job. The job runs on development pushes and qualifying pull requests. On pull requests, it also checks coverage of changed CSS lines. Download the theme-coverage artifact for core and plugin browser results. Check the failed step before interpreting an empty or partial artifact.

The workflow definition 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.


Copyright (c) 2004-2026 The Cacti Group