-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(weather): improve the cache mechanism, test(all): define basic w…
…orkflow for test.
- Loading branch information
Carlos Mantilla
committed
Jul 20, 2015
1 parent
47f2293
commit b9b46ee
Showing
9 changed files
with
195 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See http://docs.travis-ci.com/user/languages/javascript-with-nodejs/ | ||
# npm install && npm start are run by travis, everything is covered in the package.json file | ||
|
||
language: node_js | ||
node_js: | ||
- 0.10 | ||
- 0.12 | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- npm start > /dev/null & | ||
- npm run update-webdriver | ||
- sleep 1 # give server time to start | ||
|
||
script: | ||
- node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=Firefox | ||
- node_modules/.bin/protractor e2e-tests/protractor.conf.js --browser=firefox |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
exports.config = { | ||
allScriptsTimeout: 11000, | ||
|
||
specs: [ | ||
'*.js' | ||
], | ||
|
||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
|
||
baseUrl: 'http://localhost:8000/app/', | ||
|
||
framework: 'jasmine', | ||
|
||
jasmineNodeOpts: { | ||
defaultTimeoutInterval: 30000 | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
/* https://github.com/angular/protractor/blob/master/docs/toc.md */ | ||
|
||
describe('angular-weather', function() { | ||
|
||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = function (config) { | ||
config.set({ | ||
|
||
basePath: './', | ||
|
||
files: [ | ||
'bower_components/angular/angular.js', | ||
'bower_components/angular-mocks/angular-mocks.js', | ||
'test/**/*.spec.js' | ||
], | ||
|
||
autoWatch: true, | ||
|
||
frameworks: ['jasmine'], | ||
|
||
browsers: ['Chrome', 'Firefox', 'PhantomJs'], | ||
|
||
plugins: [ | ||
'karma-chrome-launcher', | ||
'karma-firefox-launcher', | ||
'karma-jasmine', | ||
'karma-junit-reporter', | ||
'karma-phantomjs-launcher' | ||
], | ||
|
||
junitReporter: { | ||
outputFile: 'test_out/unit.xml', | ||
suite: 'unit' | ||
} | ||
|
||
}); | ||
}; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use strict'; | ||
|
||
describe('angular-weather', function() { | ||
describe('dummy test', function() { | ||
|
||
it('should ', function() { | ||
expect(true).toEqual(true); | ||
}); | ||
}); | ||
}); |