EnvJS page
EnvJS is a simulated browser environment. It can be used for running FuncUnit
unit tests. EnvJS can't be used for functional tests because it doesn't accurately implement event simulation.
Use
There is no installation step for EnvJS. It comes with JavaScriptMVC.
- Write a unit test
- Run the test
test("unit test", function(){
var a = new Animal();
a.setAge(2);
equals(a.getAge(), 2, "age works");
})./js funcunit/run envjs path/to/qunit.htmlThe same reporting system that is described in Integrations works with EnvJS.
浙公网安备 33010602011771号