现在的位置: 首页 > 综合 > 正文

Ruby Test步骤

2013年01月01日 ⁄ 综合 ⁄ 共 392字 ⁄ 字号 评论关闭

1. Start Spork in a terminal window.
2. Write a single test or small group of tests.
3. Run Command-Shift-R to verify that the test or test group is red.
4. Write the corresponding application code.
5. Run Command-Shift-E to run the same test/group again, verifying that it’s green.
6. Repeat steps 2–5 as necessary.
7. When reaching a natural stopping point (such as before a commit), run rspec
spec/ at the command line to confirm that the entire test suite is still green.

抱歉!评论已关闭.