montage-testing

Package to enable jasmine test using the testacular runner in Montage projects

Showing:

Popularity

Downloads/wk

3

GitHub Stars

2

Maintenance

Last Commit

4yrs ago

Contributors

10

Package

Dependencies

4

License

BSD-3-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Build Status

Montage Testing

MontageJS uses some pure unit tests that are straightforward Jasmine specs.

To install the test code, run npm install in your project folder. This installs the montage-testing package, which adds some useful utilities for writing jasmine tests. You will need the file run-tests.html.

For an example of how we implement unit testing, see the digit repository:

  • run-tests loads our test environment.

  • data-module="all" inside the final script tag tells the system to load test/all.js.

  • all.js specifies a list of module ids for the runner to execute.

    Note that in this example, all the tests load a page in an iframe using TestPageLoader.queueTest(). These are akin to integration tests since they test the component in a real environment.

    We also test some components by mocking their dependencies.

Maintenance

Tests are in the test directory. Use npm test to run the tests in NodeJS or open test/run.html in a browser.

To run the tests in your browser, simply use npm run test:jasmine.

To run the tests using Karma use npm run test:karma and for continious tests run with file changes detection npm run test:karma-dev.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial