集成单元测试

With the new built-in testing framework in Version 10, you can easily write and run tests for your code to ensure that your functions operate as intended. Whether you are writing a single function or an entire application, the symbolic character of the Wolfram Language lets you immediately run tests for even the smallest program snippets and see the resultsat any stage of the development cycle.

  • 轻松展示单独测试.
  • 添加选项测试限制时间和/或内存使用.
  • 运行整个笔记测试.
  • 生成全部测试摘要,显示以成功、失败、信息失败或错误区别测试数目.
  • 自动得出每项测试的细节结果.
  • 通过颜色编码结果单元,从视觉上观察每项测试的运行结果.
  • 通过按照状态或顺序排列带颜色编码标签的摘要框条,创建整个笔记本测试结果的图形显示.
  • 通过按钮点击增添测试 ID.
de en es ja pt-br