반응형
반응형

 

This works similarly to other nUnit testing frameworks, though somewhat customized for javascript. It is exceedingly small, but also surprisingly powerful.

Go to HowToWriteAndRunTests to learn how to use this framework.

Ant Based Javascript Testing Framework

In its original form RhinoUnit is run from an ANT scriptdef task using the Rhino engine - and uses all the helpful things that ANT provides for that. It is intended, however, that in the future the framework can be reused in other forms.

Unit Testing Javascript

It will do all the normal tests

  • string and object comparisons
  • regexp comparisons
  • collection comparisons (contains, containsExactly, etc)

 

And does them in a more natural form. For example assert.that("string", not(matches(/somethingelse/))); checks that the string "string" doesn't match the regular expression /somethingelse/.

Advanced Tests

RhinoUnit provides some more advanced tests. You can

  • ensure that a function has been called (by wrapping it with assert.mustCall(), or using an assert.functionThatMustBeCalled()). See AssertMustCall
  • ensure that an exception is thrown (using shouldThrowException(...)
  • ensure that the global namespace isn't polluted by poor variable scoping

See APIDescription for a list of all assertions and functions that are available.

반응형
반응형

David: Keep track of your Node dependecies

David helps keep your Nodejs project dependencies up to date. https://david-dm.org

david

Homepage: https://david-dm.org/
GitHub: https://github.com/alanshaw/david-www

 

Nodejs based web service that tells you when your project npm dependencies are out of date.

To use David, your project must include a package.json file in the root of your repository.

Currently David works with package.json files found in public github repositories only. 

반응형
반응형

SPA, Javascript MVC Framework

 

SPA : Single Page Application. 단일 웹페이지 내에서 오든 이벤트가 이루어진다.

웹페이지간 전환이 없어서 네트워크 트래픽도 줄이고, 동작이 빠르며, 사용에 끊어짐이 없다.

 

모바일 플랫폼에서 주로 사용되고 있는 것이 SPA이다.

센차터치도 그러하고, 제이쿼리 모바일도 그렇다.

하지만 하나의 웹페이지에 자바스크립트가 많이 들어가다보니 소스가 꼬이는 문제가 발생한다.

그래서, 자바스크립트로 구성하는 MVC(Model-View-Controller)가 나오게 된다.

 

이름만 많이 들어본 Backbone.js, Angular.js, KnockOut.js, javascriptMVC등이 있다.

 

고르기가 고민된다면 http://todomvc.com/ 을 참고하시오.

 

 

JavaScript Apps

  • * R = App also demonstrates routing
  • * Maroon = App requires further work to be spec-compliant

Compile To JavaScript


MVC Extension Frameworks


Module Loaders


Real-time


Compare these to a non-framework implementation

반응형
반응형

Progression.js: Create friendlier forms

Progression.js is a jQuery plugin that makes it easy to add real-time hints to your forms. It also lets you include project updates for each field.

progression.js

 

반응형
반응형

DalekJS: An open source UI testing tool

dalekjs

반응형
반응형

SlimerJS: Scriptable browser for devs

slimerjs

 

반응형

+ Recent posts