新東南海鮮餐廳@台北
新東南活海鮮餐廳
北市中正區汀州路一段105號
02-23014239
D:\code\js-test-driver>java -jar JsTestDriver-1.2.2.jar --port 1234 --browser "
D:\Program Files\GoogleChromePortable\GoogleChromePortable.exe"
D:\code\js-test-driver>java -jar JsTestDriver-1.2.2.jar --tests all
server: http://localhost:1234
load:
- test/*.js
Just a quick refresher, TDD looks like this:
1. Create a test
2. Run all tests, making sure the new test fails
3. Write the minimum amount of code to make the test pass
4. Run all of the tests to ensure they pass
5. Refactor the code, making sure that the tests still pass
6. Repeat for each new code module being developed
The Effectiveness of Test Driven Development (TDD) | GrokCode
Chicago Pizza Factory Taiwan 芝加哥披薩
Chicago Pizza Factory Taiwan
Add : 台北市建國南路二段11巷1號1樓
Tel : 02-2707-2121
營業時間 : 11:00am ~ 8:00pm (全年無休)
var Mixin = function() {};
Mixin.prototype = {
serialize: function() {
var output = [];
for(key in this) {
output.push(key + ': ' + this[key]);
}
return output.join(', ');
}
};
augment(Author, Mixin);
var author = new Author('Ross Harmes', ['JavaScript Design Patterns']);
var serializedString = author.serialize();