File tree Expand file tree Collapse file tree 7 files changed +259
-266
lines changed
Expand file tree Collapse file tree 7 files changed +259
-266
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ defaults : &defaults
4+ working_directory : ~/vuex
5+ docker :
6+ - image : circleci/node:8-browsers
7+
8+ jobs :
9+ install :
10+ << : *defaults
11+ steps :
12+ - checkout
13+ - restore_cache :
14+ keys :
15+ - v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }}
16+ - v1-vuex-{{ .Branch }}
17+ - v1-vuex
18+ - run :
19+ name : Installing Dependencies
20+ command : yarn
21+ - save_cache :
22+ paths :
23+ - ./node_modules
24+ key : v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }}
25+ - persist_to_workspace :
26+ root : ~/
27+ paths :
28+ - vuex
29+
30+ lint-types :
31+ << : *defaults
32+ steps :
33+ - attach_workspace :
34+ at : ~/
35+ - run :
36+ name : Linting
37+ command : |
38+ yarn lint --format junit --output-file test-results/eslint/results.xml
39+ - run :
40+ name : Testing Types
41+ command : |
42+ yarn test:types
43+ - store_test_results :
44+ path : test-results
45+ - store_artifacts :
46+ path : test-results
47+
48+ test-unit :
49+ << : *defaults
50+ steps :
51+ - attach_workspace :
52+ at : ~/
53+ - run :
54+ name : Running Unit Tests
55+ command : |
56+ yarn test:unit
57+
58+ test-e2e :
59+ << : *defaults
60+ steps :
61+ - attach_workspace :
62+ at : ~/
63+ - run :
64+ name : Running End-to-end Tests
65+ command : |
66+ yarn test:e2e
67+
68+ test-ssr :
69+ << : *defaults
70+ steps :
71+ - attach_workspace :
72+ at : ~/
73+ - run :
74+ name : Running Server-side Rendering Tests
75+ command : |
76+ yarn test:ssr
77+
78+ workflows :
79+ version : 2
80+ install-and-parallel-test :
81+ jobs :
82+ - install
83+ - lint-types :
84+ requires :
85+ - install
86+ - test-unit :
87+ requires :
88+ - install
89+ - test-e2e :
90+ requires :
91+ - install
92+ - test-ssr :
93+ requires :
94+ - install
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4848 "cross-env" : " ^5.2.0" ,
4949 "cross-spawn" : " ^5.0.1" ,
5050 "css-loader" : " ^0.28.7" ,
51- "eslint" : " ^3.19.0 " ,
52- "eslint-plugin-vue-libs" : " ^1. 2.0" ,
51+ "eslint" : " ^4.13.1 " ,
52+ "eslint-plugin-vue-libs" : " ^2.0.1 " ,
5353 "express" : " ^4.14.1" ,
5454 "jasmine" : " 2.8.0" ,
5555 "jasmine-core" : " 2.8.0" ,
Original file line number Diff line number Diff line change 11module . exports = {
22 'shopping cart' : function ( browser ) {
33 browser
4- . url ( 'http://localhost:8080/shopping-cart/' )
4+ . url ( 'http://localhost:8080/shopping-cart/' )
55 . waitForElementVisible ( '#app' , 1000 )
66 . waitFor ( 120 ) // api simulation
77 . assert . count ( 'li' , 3 )
Original file line number Diff line number Diff line change 11module . exports = {
22 'counter' : function ( browser ) {
33 browser
4- . url ( 'http://localhost:8080/counter/' )
4+ . url ( 'http://localhost:8080/counter/' )
55 . waitForElementVisible ( '#app' , 1000 )
66 . assert . containsText ( 'div' , 'Clicked: 0 times' )
77 . click ( 'button:nth-child(1)' )
Original file line number Diff line number Diff line change 11module . exports = {
22 'todomvc' : function ( browser ) {
33 browser
4- . url ( 'http://localhost:8080/todomvc/' )
4+ . url ( 'http://localhost:8080/todomvc/' )
55 . waitForElementVisible ( '.todoapp' , 1000 )
66 . assert . notVisible ( '.main' )
77 . assert . notVisible ( '.footer' )
You can’t perform that action at this time.
0 commit comments