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
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,3 +56,17 @@ cargo test # Backend tests
56
56
docker-compose up # Indexer + DB
57
57
```
58
58
59
+
## Smart Contract Testing
60
+
61
+
The Soroban contract now has dedicated suites for edge cases, security scenarios, integration flows, stress tests, and performance benchmarks under `contract/tests/`.
| Integration |`contract/tests/integration.rs`| End-to-end lifecycle flows across escrow, bridge, and insurance |
12
+
| Performance |`contract/tests/performance.rs`| Cost-estimate benchmarks with explicit instruction ceilings |
13
+
| Stress |`contract/tests/stress.rs`| High-volume load, scalability, and resource-usage monitoring |
14
+
15
+
## Commands
16
+
17
+
```bash
18
+
npm run test:contract
19
+
npm run test:contract:edge
20
+
npm run test:contract:security
21
+
npm run test:contract:integration
22
+
npm run test:contract:performance
23
+
npm run test:contract:stress
24
+
npm run test:contract:coverage
25
+
```
26
+
27
+
## Coverage
28
+
29
+
Coverage is generated with `cargo llvm-cov` and written to:
30
+
31
+
-`contract/coverage/lcov.info`
32
+
-`contract/coverage/html/index.html`
33
+
34
+
## GitHub CI
35
+
36
+
The `smart-contract-tests.yml` workflow runs the functional suites, stress benchmarks, and coverage upload on pushes and pull requests to `main` and `develop`.
0 commit comments