-
Notifications
You must be signed in to change notification settings - Fork 33
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
Integration of Karma testing framework #173
Conversation
Also, I added a test for the Viewer so that one can actually see that the WebGL stuff works with |
Co-authored-by: Guillaume Fraux <luthaf@luthaf.fr>
Co-authored-by: Guillaume Fraux <luthaf@luthaf.fr>
…a/chemiscope into karma-testing-framework
I have an issue when trying to run the tests locally:
I'd guess this is related to webpack or karma configuration, I'll check what's going on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package.json
Outdated
"karma-firefox-launcher": "^2.1.1", | ||
"karma-mocha": "^2.0.1", | ||
"karma-safari-launcher": "^1.0.0", | ||
"karma-webpack": "git+https://github.com/ryanclark/karma-webpack#ef7edb6b6756fb563871eaff88ca876892694896", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to use the latest master commit, since it contains some un-released changes that fix another issue I had with karma-webpack (codymikol/karma-webpack#453 (comment))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incredibly, works on my system
…a/chemiscope into karma-testing-framework
4990991
to
d32cc1f
Compare
d32cc1f
to
a81df98
Compare
59e91f0
to
501f130
Compare
I though I already merged this 😄 Well, now it is done! |
author Jakub Lála <68380659+jakublala@users.noreply.github.com> 1626864006 +0200 committer Jakub Lála <jakublala@gmail.com> 1626892362 +0200 parent 9eacadc author Jakub Lála <68380659+jakublala@users.noreply.github.com> 1626864006 +0200 committer Jakub Lála <jakublala@gmail.com> 1626892347 +0200 parent 9eacadc author Jakub Lála <68380659+jakublala@users.noreply.github.com> 1626864006 +0200 committer Jakub Lála <jakublala@gmail.com> 1626892324 +0200 Use Karma to run unit tests (lab-cosmo#173) Previously tests would run on node, and we would mimic a browser environment with JSDom, but the limitations of this approach were too big. Karma allows to run the tests in real browsers, which is where chemiscope runs in practice Temp Commit Changed .gitIgnore temp commit temp commit Added Karma Viewer test added Remove coverage files Moved files / Changed chrome launcher setup-chrome driver attempt Revert previosu commit Update .github/workflows/tests.yml Co-authored-by: Guillaume Fraux <luthaf@luthaf.fr> Enacted on suggestions Day 1 commit temp commit Added a few unit tests for Map Options One more
Integrating
karma
instead ofjsdom
to actually run the tests in a browser so that WebGL works (and one can thus write tests for the Viewer or the Map).