• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

DevMountain/JS-KOANS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

DevMountain/JS-KOANS

开源软件地址:

https://github.com/DevMountain/JS-KOANS

开源编程语言:

JavaScript 93.8%

开源软件介绍:

DevMountain JavaScript Koans

This purpose of this repository is to introduce you to Test Driven Development fundamentals and more importantly, introduce you to JavaScript fundamentals. You will be presented with a group of failing tests. Your task is to look at the test, see what it's testing, and make that test pass. Don't just guess - really try to understand the JavaScript principle that is being applied to make that particular test pass.

  1. Fork this repository
  2. Observe the files in the 'koans' folder. You'll notice each file is testing for some particular piece of knowledge, whether it be Arrays, Objects, Functions, etc.
  3. Open up KoansRunner.html in your Web Browser and observe that it shows one failing test. To see all the tests that are failing, click on 'look ahead'. This will show you every test in the test suite.
  4. The most outer text in the red box is the particular section you're in, in from that is the particular test, and inside that box in the gray area is what the test suite is expecting to happen. In this case the test suite is expecting 'false to be Truthy'. Inside that box you'll notice which file the test is failing at, AboutExpects.js
  5. Navigate to AboutExpects.js and make all those tests pass to get a feel for how TDD (test driven development) works.
  6. Once you make all those tests pass, notice that those particular tests go green, and now the most outer text is now different - because we've moved on to a different section. Keep working to pass all the tests. Be sure to commit and push to your fork often, it's good practice.

This repo is a fork of the following link with added Koans

Copyright

© DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap