Created
May 3, 2013 19:35
-
-
Save daneko/5513241 to your computer and use it in GitHub Desktop.
yeoman + angular + coffee で end-to-end なテストをやる的なメモ ref: http://qiita.com/items/454755dcd0a28eab15ee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -v | |
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin11.4.2] | |
gem list | |
*** LOCAL GEMS *** | |
chunky_png (1.2.7) | |
compass (0.12.2) | |
fssm (0.2.10) | |
sass (3.2.6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/work | |
# -g で入れろとか言われるけど気にしない | |
npm install yo grunt-cli bower generator-angular generator-karma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running "karma:e2e" (karma) task | |
INFO [karma]: Karma server started at http://localhost:8080/__karma/ | |
INFO [launcher]: Starting browser Chrome | |
INFO [Chrome 26.0 (Mac)]: Connected on socket id 09PWfFEp77nvG_76rCVz | |
Chrome 26.0 (Mac): Executed 1 of 1 SUCCESS (0.601 secs / 0.355 secs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./node_modules/.bin/yo angular:controller PhoneListCtrl --coffee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running "karma:e2e" (karma) task | |
WARN [karma]: Port 8080 in use | |
WARN [karma]: Port 9100 in use | |
WARN [karma]: Port 8081 in use | |
WARN [karma]: Port 9101 in use | |
WARN [karma]: Port 8082 in use | |
WARN [karma]: Port 9102 in use | |
WARN [karma]: Port 8083 in use | |
WARN [karma]: Port 9103 in use | |
INFO [karma]: Karma server started at http://localhost:8084/__karma/ | |
INFO [launcher]: Starting browser Chrome | |
INFO [karma]: To run via this server, use "karma run --runner-port 9104" | |
INFO [Chrome 26.0 (Mac)]: Connected on socket id ZJRbNuQ43vcEFKvUDhR2 | |
Chrome 26.0 (Mac) PhoneCat App Phone list view should filter the phone list as user types into the search box FAILED | |
expect repeater '.phones li' count toBe 10 | |
http://localhost:8084/base/test/e2e/PhoneListScenario.coffee-compiled.js?1367662793000:9:7: expected 10 but was 1 | |
Chrome 26.0 (Mac): Executed 1 of 1 (1 FAILED) (0.506 secs / 0.288 secs) | |
Warning: Task "karma:e2e" failed. Used --force, continuing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/work | |
./node_modules/.bin/yo angular appname --coffee | |
# なんか色々と聞かれるから適当に答えるとか | |
# bowerも-gで入れていないので、自分で実行する必要あり | |
./node_modules/.bin/bower install | |
# その他の人との共有とかするのならこのへんで npm init とか叩いておくと良いのかな? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/work | |
./node_modules/.bin/grunt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running "karma:unit" (karma) task | |
INFO [karma]: Karma server started at http://localhost:8080/ | |
INFO [launcher]: Starting browser Chrome | |
WARN [watcher]: Pattern "/Users/daneko/project/yo/app/scripts/*.js" does not match any file. | |
WARN [watcher]: Pattern "/Users/daneko/project/yo/test/mock/**/*.js" does not match any file. | |
WARN [watcher]: Pattern "/Users/daneko/project/yo/app/scripts/**/*.js" does not match any file. | |
WARN [watcher]: Pattern "/Users/daneko/project/yo/test/spec/**/*.js" does not match any file. | |
INFO [Chrome 26.0 (Mac)]: Connected on socket id adU-SAEY68z-rCL-ZFPY | |
Chrome 26.0 (Mac): Executed 0 of 0 SUCCESS (0.094 secs / 0 secs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser().navigateTo(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/work | |
./node_modules/.bin/grunt | |
node scripts/web-server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxies = { | |
'/': 'http://localhost:8000/dist/' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Continuous Integration mode | |
// if true, it capture browsers, run tests and exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/daneko/helloyeoman.git | |
cd helloyeoman | |
npm install | |
./node_modules/.bin/bower install | |
./node_modules/.bin/grunt e2e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment