Skip to content
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

Build client testing framework #42

sderickson opened this issue Jan 2, 2014 · 0 comments

Build client testing framework #42

sderickson opened this issue Jan 2, 2014 · 0 comments


Copy link

sderickson commented Jan 2, 2014

We need client testing framework that is more thoroughly integrated with the /app code itself. Here's the gist of the plan:

  1. Create a /test/* view which takes the rest of the path and looks up the /app module in that path and runs those tests with the standard Jasmine test runner. /test simply runs all tests in /app (all modules that end with .spec).
  2. Set up brunch to include these spec files in app.js for development builds, but not for production builds.
  3. Add .spec files with Jasmine tests to /app itself, often paired with the class or module it tests (so there would be right next to Some existing tests can be grabbed from /test.
  4. Build common systems for replacing various resource grabbing systems with Jasmine spies, such as Backbone, PreloadJS and Firebase.
  5. Integrate with the Developer Tools Window, if available (so for any instance of a class, click a button to open a test window for its class).

These steps are in increasing importance. Just doing the first one so tests can be written for and viewed with the development server will go a long way toward covering the app with unit tests and better descriptions of how things work.

@GlenDC GlenDC self-assigned this Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants