Skip to content

karma/jamsine plot interaction tests #61

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 10 commits into from
Dec 2, 2015
Merged

karma/jamsine plot interaction tests #61

merged 10 commits into from
Dec 2, 2015

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Dec 2, 2015

@alexcjohnson @bpostlethwaite @cldougl @mdtusz

Turns out the karma runner can generate plotly.js graphs in a test browser. 🎉

@@ -54,6 +54,9 @@ function testMock (fileName, t) {
// TODO fix race condition in gl2d image generation
if(fileName.indexOf('gl2d_') !== -1) return;

// TODO fix run-to-run randomness
if(fileName === 'gl3d_bunny-hull.json') return;
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 particular 3d mock fails in ~ 1 out of 10 attempts.

Copy link
Member

Choose a reason for hiding this comment

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

can we make an issue for this and embed the issue number in this comment?

- exclude that test file on circleci runs
- that way, gl plot interactions can be tested locally
var files = fs.readdirSync(constants.pathToTestImageMocks);

// -1 for font-wishlist and
// -38 for the gl2d mocks
t.plan(files.length - 39);
// -1 for gl3d_bunny-hull
Copy link
Member

Choose a reason for hiding this comment

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

does this mean files.length -1 for bunny-hull? Perhaps we can expand this comment with a little more description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

more like files.length -1 - 38 - 1 = files.length - 40

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but yeah, I can make this clearer

@bpostlethwaite
Copy link
Member

this is great, really nice work getting Plotly integration tests going. There are just a few places we should add a little more commentary and issue linkages so everyone is on the same page.

Once those 🐄 's are done its 💃 from me!

etpinard added a commit that referenced this pull request Dec 2, 2015
karma/jamsine plot interaction tests
@etpinard etpinard merged commit b6df8ab into master Dec 2, 2015
@etpinard etpinard deleted the karma-plot-tests branch December 2, 2015 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants