角JS单元测试的教程结合实例 [英] Angular JS unit testing tutorials with examples
问题描述
我是新来的角JS卡玛 - 茉莉单元测试。所以,球员,请ü可以分享好的教程?
I am new to karma-jasmine unit testing for Angular js. So guys please can u share good tutorials?
推荐答案
首先,也是最重要的:
单元测试是在所有其他语言类似。
Unit-testing is similar in all other languages.
您必须记住的主要特点编写可测试code的。
You have to keep in mind the main features of writing testable code.
请注意:这是一个很好Pluralsight视频(其成本钱)由MISKO Hevery上编写可测试code)
Note: There is a good Pluralsight video ( Which cost money ) by Misko Hevery on Writing Testable Code).
第一:关注此YouTube通过Vojta开发姬娜 - 安装和启动噶,人谁写业。
First: Watch this youtube by Vojta Jina - Installing and Starting Karma, the person who wrote karma.
二:关注此1小时的辅导,我强烈支持建议:介绍AngularJS单元测试吉姆·莱文
Second: Watch this 1 Hour tutorial which I highly recommand : Introduction to AngularJS Unit Testing By Jim Levin
在你完成这些,你应该能够测试每件code在您的角项目。
After you complete those you should be able to test every piece of code in your Angular Project.
好运。
这篇关于角JS单元测试的教程结合实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!