Skip to content

CircleCI with Ubuntu 14.04, 2x parallelism and WebGL jasmine tests #1455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 9, 2017
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"karma-coverage": "^1.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-jasmine-spec-tags": "^1.0.1",
"madge": "^1.6.0",
"node-sass": "^4.5.0",
"npm-link-check": "^1.2.0",
Expand Down
11 changes: 10 additions & 1 deletion test/jasmine/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func.defaultConfig = {

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'browserify'],
frameworks: ['jasmine', 'jasmine-spec-tags', 'browserify'],

// list of files / patterns to load in the browser
//
Expand Down Expand Up @@ -119,6 +119,15 @@ func.defaultConfig = {
extensions: ['.js'],
watch: !isCI,
debug: true

// unfortunately a few tests don't behave well on CI
// using `karma-jasmine-spec-tags`
// add @noCI to the spec description to skip a spec on CI
client: {
tagPrefix: '@',
skipTags: isCI ? 'noCI' : null
},

}
};

Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/gl2d_click_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Plotly.register([
require('@lib/contourgl')
]);

describe('Test hover and click interactions', function() {
describe('@noCI Test hover and click interactions', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one here should work on CI. I'll investigate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in #1459


var mock = require('@mocks/gl2d_14.json');
var mock2 = require('@mocks/gl2d_pointcloud-basic.json');
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/mapbox_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ describe('mapbox credentials', function() {
}, LONG_TIMEOUT_INTERVAL);
});

describe('mapbox plots', function() {
describe('@noCI, mapbox plots', function() {
'use strict';

var mock = require('@mocks/mapbox_0.json'),
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/parcoords_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('parcoords initialization tests', function() {
});
});

describe('parcoords', function() {
describe('@noCI parcoords', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monfera this suite here blows the process on CI.

Maybe next time you play around with the parcoords code you could try to investigate which it(s) exactly blow(s) up the process. Or better yet, try to make the test less resource intensive. Thanks in advance!


beforeAll(function() {
mock.data[0].dimensions.forEach(function(d) {
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/scattermapbox_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ describe('scattermapbox convert', function() {
}
});

describe('scattermapbox hover', function() {
describe('@noCI scattermapbox hover', function() {
'use strict';

var hoverPoints = ScatterMapbox.hoverPoints;
Expand Down