Test Your Code!
summary
Argues that small APL functions still need reproducible unit tests and shows Dyalog’s tooling: ]DTest / t-test for running suites, writing tests as dfns with empty guards, and the SuccessValue modifier to choose pass values. Demonstrates code coverage reporting (example results: 33% and 34% coverage), local multi‑interpreter runs via execute_local_test and a CI project called Theta (continuous integration) using Jenkins, with a full run taking about one hour and producing ~415 MB of results.
AI-written summary · about
chapters (9)
- 0:00Introduction and focus on unit testing
- 2:20How to do unit testing
- 3:55Demonstration of ]DTest on a simple statistics program
- 9:50Writing tests as dfns with empty guards
- 12:23SuccessValue modifier to choose which value indicates test success
- 13:38Defining a test suite
- 15:25Code coverage to see which lines of code were executed by tests
- 20:32Testing across multiple interpreters on different platforms
- 26:08Conclusion
