Skip to content

A skeleton Javascript project with an auto-build, auto-test harness implemented with NodeJS

Notifications You must be signed in to change notification settings

lorennorman/node-autotest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a project skeleton for development of an agile client-side Javascript library. 

Features:
- Sprockets for building Javascript files, allowing complex code hierarchies at development time.
- Jasmine for testing, which gives a nice RSpec-like test suite syntax and makes no expectations of where the tests are run (in-browser vs CLI vs Selenium/CI)
- NodeJS for auto-build and auto-test functionality:
  - watches source files to auto-build the project
  - watches spec files to auto-test the project

Requirements:
- Sprockets (http://getsprockets.org)
- Jasmine (http://github.com/pivotal/jasmine)
- NodeJS (http://nodejs.org)

To invoke the auto-harness, run:
node autotest.js

And start the TDD cycle!

TODO:
- find a way to watch for file-change events in Node that doesn't rely on polling (highly ineffecient, bad for hardware)
- watched files are only updated after a refresh, so newly created source files won't be seen until the build process runs again (ditto new spec files and the test process)
- factor the autotest.js code into separate files
- autotest strategies (Sprockets, Jasmine) should be overridable with the build/test tool of the users choice
- expand the types of tool strategies available: minification, obfuscation, optimization, documentation, gzip

About

A skeleton Javascript project with an auto-build, auto-test harness implemented with NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published