Mocha+Chai???????????????????
????????? ???????[ 2017/1/17 10:06:46 ] ????????Mocha ???????
??????. only()??skip()????
????describe???it?鶼??????? only() ?? skip() ??????
????only() ??????????????describe???£????и?????????
????skip() ??????????????describe???£?????????и?????????
???????????describe???£??????? only() ?? skip() ???????????? .only() ??????
????describe('Array'?? function() {
????describe.only('??describe???????иò?????'?? () => {
????it.skip('???????????'?? () => { //... });
????});
????describe('?????'?? () => { //... });
????});
??????. mocha ???????????
????–recursive ?????????μ???????
????Mocha???????/test????????????????
????Mocha???????/test?????μ??????????????
??????????????–recursive???????????????μ???????????????С?
????mocha --recursive
????-u tdd ???TDD??
????mocha????????BDD????????TDD??test??????????????磺
????mocha -u tdd test.js
????–watch?? -w ????????仯
????--watch ??????????????????????????????????仯???????????mocha??
????mocha --watch
????–bail?? -b
?????????????????????????????????к?????????????
????-timeout?? -t ?????????
????Mocha???????????????????2000???????2000????????????????????-t????г???????
????mocha -t 5000 test.js
???????nobe???????????
????mocha spec/{my??awesome}.js
????mocha test/unit/*.js
????mocha 'test/**/*.@(js|jsx)'
??????. chai??
??????????????assert?????????????? http://chaijs.com/api/assert/
????????????API????????
????.equal(actual?? expected?? [message])
????.deepeEqual(actual?? expected?? [message])
????.isOk(object?? [message])
????.isTrue(value?? [message])
????.include(haystack?? needle?? [message])
????… …
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
iOS???????mocha??chai??sinon??istanbul???????????????????????????????????????д?????Java????????7??????Android?????????Robolectric3.0????(?)???Kiwi?????????????????????????????????Python?????????????????????????????????????Controller????????д?????????10???????????????????Angular????????????Component??Directive??Pipe ???ServiceAndroid????????????????????????????????--Mockito??????iOS UnitTest???????Vue?????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????