好吧,我正在努力实现一件事。一些花哨但值得尝试的东西..
当我跑步时bundle exec rspec spec/
我的测试用例通过了,我得到了
Finished in 5.12 seconds
38 examples, 0 failures, 1 pending
我想使用 MAC OSsay
命令(请在此处阅读)。这将在测试套件完成后说,you have 38 examples, 0 failures and 1 pending example
.
例如命令
say you have example_count examples, failures_count failures and pending_count pending examples
要求是,我需要在可以与say
命令一起使用的变量中捕获示例、失败和挂起。