Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Running unit tests
Clone this wiki locally
If you are contributing or consuming and encounter a bug you should make a unit test showing a failing case. Once you've written the test you will need to run the tests to ensure it fails.
Also once you've fixed the bug, you'll want to see that rewarding green!
Before you can run the tests you'll need the source, the easiest way is clone the repository.
git clone git://github.com/tbranyen/backbone.layoutmanager.git
Running in a browser
This is a good way to ensure LayoutManager works in a specific browser. Simply open
test/index.html in your browser of choice. If you notice tests failing in that particular browser, open an issue and let us know.
This is significantly more useful when bug and feature testing since you can automate and have them run whenever you make a change. This is also the only way to test the Node.js tests.
You'll need to install the project's development dependencies, you can do this by running:
Finally, you can lint, run headless browser tests, and run the Node.js tests by executing the following command:
You can also run specific tests:
# For the headless browser tests. grunt qunit # For the Node.js tests. grunt nodequnit