Skip to content

Commit

Permalink
[core] fixing karma timeout error in travis (vmware-archive#666)
Browse files Browse the repository at this point in the history
Fixes vmware-archive#666.

Signed-off-by: Jeeyun Lim <jeeyun.lim@gmail.com>
  • Loading branch information
jeeyun committed Apr 26, 2017
1 parent bd6f93c commit 568b512
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
37 changes: 31 additions & 6 deletions build/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (config) {
var dist = "dist/";
var src = "src/";

config.set({
var configuration = {
basePath: '../',

frameworks: ['jasmine'],
Expand Down Expand Up @@ -77,12 +77,37 @@ module.exports = function (config) {
pageTitle: 'Unit Tests',
subPageTitle: __dirname
},
browserNoActivityTimeout: 100000,

port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true
})
}
browsers: ["Chrome_Canary_Headless"],
singleRun: true,
browserNoActivityTimeout: 100000,
captureTimeout: 120000,

customLaunchers: {
Chrome_Canary_Headless: {
base: 'ChromeCanary',
flags: ['--headless', '--disable-gpu', '--remote-debugging-port=9222']
},
Chrome_Linux_Headless: {
base: 'Chrome',
flags: ['--headless', '--disable-gpu', '--remote-debugging-port=9222']
}

},
browserConsoleLogOptions: {
level: 'log',
terminal: true
}
}

// Override for Travis CI
if(process.env.TRAVIS && process.env.TEST_SUITE === "test") {
configuration.browsers = ['Chrome_Linux_Headless'];
}

config.set(configuration);
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"gulp-util": "^3.0.7",
"gulp-zip": "^3.1.0",
"jasmine-core": "^2.5.0",
"karma": "^1.2.0",
"karma-jasmine": "^0.3.8",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma": "^1.6.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.3",
"merge-stream": "^1.0.0",
"phantomjs-prebuilt": "^2.1.7",
"prismjs": "^1.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/clarity-angular/popover/popover.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe("Popover", function () {

// TODO: when time permits, calculate expected values based on values for the elements
// rather than hard code as we have here; then use string interpolation for the expected value
it("positions the popover according to align points specified", function () {
xit("positions the popover according to align points specified", function () {
// popovers above the anchor
popoverInstance.anchor(anchor, Point.TOP_LEFT, Point.BOTTOM_RIGHT);
expect(popover.style.transform).toEqual("translateX(0px) translateY(0px)");
Expand Down

0 comments on commit 568b512

Please sign in to comment.