From 31588cfcee776837a975e17f57e8b21ac397dcf8 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 14 Feb 2026 06:29:53 +0500 Subject: [PATCH] Add testing section to README for OLS feature test suite --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 9ff9ab30c..de753a11f 100755 --- a/README.md +++ b/README.md @@ -171,6 +171,29 @@ sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgr --- +## 🧪 Testing + +CyberPanel includes an OLS feature test suite with 128 tests covering all custom OpenLiteSpeed features. + +### Running Tests + +```bash +# On the target server, set up test data (once): +bash tests/ols_test_setup.sh + +# Run the full 128-test suite: +bash tests/ols_feature_tests.sh +``` + +### Test Coverage + +| Phase | Tests | Coverage | +|-------|-------|----------| +| Phase 1: Live Environment | 56 | Binary integrity, CyberPanel module, Auto-SSL, LE certificates, SSL listener auto-mapping, cert serving, HTTPS/HTTP, .htaccess processing, VHost config, origin headers, PHP config | +| Phase 2: ReadApacheConf | 72 | Include/IncludeOptional, global tuning, listener creation, ProxyPass, IfModule, VHost creation, SSL dedup, Directory/Location blocks, PHP version detection, ScriptAlias, HTTP/HTTPS, process health, graceful restart | + +--- + ## 🔧 Troubleshooting ### **Common Issues & Solutions**