Skip to content

Commit 41a9d84

Browse files
committed
Add testing section to README for OLS feature test suite
1 parent 0c41d4e commit 41a9d84

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,29 @@ sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgr
171171

172172
---
173173

174+
## 🧪 Testing
175+
176+
CyberPanel includes an OLS feature test suite with 128 tests covering all custom OpenLiteSpeed features.
177+
178+
### Running Tests
179+
180+
```bash
181+
# On the target server, set up test data (once):
182+
bash tests/ols_test_setup.sh
183+
184+
# Run the full 128-test suite:
185+
bash tests/ols_feature_tests.sh
186+
```
187+
188+
### Test Coverage
189+
190+
| Phase | Tests | Coverage |
191+
|-------|-------|----------|
192+
| 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 |
193+
| 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 |
194+
195+
---
196+
174197
## 🔧 Troubleshooting
175198

176199
### **Common Issues & Solutions**

0 commit comments

Comments
 (0)