没有合适的资源?快使用搜索试试~ 我知道了~
mruby-spec:WIP-MRuby的行为驱动开发
共32个文件
rb:23个
md:2个
yml:2个
需积分: 9 0 下载量 43 浏览量
2021-05-08
16:46:47
上传
评论
收藏 15KB ZIP 举报
温馨提示
MRuby规范 MRuby Spec(或MSpec)是行为驱动开发框架,用于受RSpec启发的MRuby。 用法 添加mruby-spec作为对MRuby的build_config.rb的依赖 MRuby :: Build . new ( 'test' ) do | conf | # Your build configuration conf . gem github : 'sagmor/mruby-spec' conf . enable_test end 使用BDD语法编写测试 describe YourClass do it "does something" do expect ( false ) . to be true end end 并观看失败 # If you are using mruby-cli bundle exec mrb test #
资源推荐
资源详情
资源评论
收起资源包目录
mruby-spec-master.zip (32个子文件)
mruby-spec-master
.gitignore 39B
mrblib
example_group.rb 1KB
runner.rb 641B
1_matchers.rb 102B
1_matchers
respond_to_matcher.rb 269B
raise_error_matcher.rb 922B
1_base_matcher.rb 424B
be_truthy_matcher.rb 235B
eq_matcher.rb 265B
be_something_matcher.rb 510B
be_matcher.rb 422B
have_something_matcher.rb 430B
0_dsl.rb 695B
compare_matcher.rb 343B
be_falsey_matcher.rb 233B
null_example_group.rb 269B
expectation.rb 848B
matchers.rb 102B
example.rb 860B
build_config.rb 100B
.travis.yml 53B
CODE_OF_CONDUCT.md 1KB
LICENSE.txt 1KB
mrbgem.rake 354B
spec
matchers
dsl_spec.rb 8KB
example_spec.rb 573B
runner_spec.rb 373B
example_group_spec.rb 275B
README.md 1KB
Gemfile 90B
.inch.yml 40B
.yardopts 39B
共 32 条
- 1
资源评论
凯然
- 粉丝: 18
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功