Blog, page 2
Notes on testing web3 products and on test automation.
-
A k6 soak test script, how long to run it and what to watch, shown on a small service that leaks on purpose so you can tell a real leak from normal noise.
-
Puppeteer vs Playwright for E2E tests: the same login test in both, a decision table, and when Puppeteer still fits. Start with Playwright for new suites.
-
A working k6 spike test example with ramping-vus stages, thresholds on error rate and p95, annotated output and the mistakes that make spike results useless.
-
Six Solidity unit test patterns with Foundry code: revert, event, access control, rounding, fuzz and state-transition tests, plus the bug each one catches.
-
Smoke testing vs regression testing in one page: scope, size, triggers and a CI/CD pipeline example that runs smoke on every merge and regression nightly.
-
The edge cases that break NFT contracts: stale approvals, mint limits, reentrancy, royalties, metadata and ownership, with Hardhat tests for each.