assert:断言风格测试框架 源码

上传:qqdivisive20696 浏览: 23 推荐: 0 文件:ZIP 大小:86.81KB 上传时间:2021-04-19 06:52:25 版权申诉
断言测试框架 用法 # in test/my_tests.rb require "assert" class MyTests < Assert :: Context test "something" do assert_that ( 1 ) . equals ( 1 ) end end $ assert test/my_tests.rb Loaded suite (1 test) Running tests in random order, seeded with "56382" . 1 result: pass (0.000128 seconds, 7812.500000 tests/s, 7812.500000 results/s) 什么是断言 框架:您定义测试及其在其中运行的上下文-声明运行它们。 一切都是纯Ruby,因此请使用您喜欢的任何第三方测试工具。 创建可扩
上传资源
用户评论