busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

buster-html-doc doesn't seem to work on Windows 7 #414

Closed gundelsby closed 10 years ago

gundelsby commented 10 years ago

This test

testCase("Buster", {
    setUp: function () {
        /*:DOC element = <div><span id="heisann">Hei!</span></div> */
    },
    "this.element is defined" : function () {
        assert.defined(this.element);
    }
});

..results in:

14:34:13 Running tests Failure: Opera 12.16, Windows Server 2008 R2 / 7 Buster this.element is defined [assert.defined] Expected to be defined <anonymous function: this.element is defined>([arguments not available])@./test/buster-tests.js:6 <anonymous function: this.element is defined>([arguments not available])@./test/buster-tests.js:6 Failure: Firefox 28.0, Windows Server 2008 R2 / 7 Buster this.element is defined ([object Object]) [assert.defined] Expected to be defined ["this.element is defined"]@./test/buster-tests.js:6 Failure: IE 8.0, Windows Server 2008 R2 / 7 Buster this.element is defined ([object Object]) [assert.defined] Expected to be defined Failure: Chrome 35.0.1916.153, Windows Server 2008 R2 / 7 Buster this.element is defined ([object Object]) [assert.defined] Expected to be defined at Object.testCase.this.element is defined (./test/buster-tests.js:6:10) 4 tests, 0 assertions, 4 runtimes ... 4 failures

cjohansen commented 10 years ago

Weirdly enough, it works for me on OSX. @dwittner can you confirm that this fails on Windows?

dwittner commented 10 years ago

@gundelsby, do you load the buster-html-doc extension in buster.js?

var config = module.exports;

config["browser tests"] = {
  environment: "browser",
  tests: ["test.js"],
  extensions: [require("buster-html-doc")]
};

If i do so, it is working for me on Windows 7

gundelsby commented 10 years ago

No, no. I did not. Egg on my face :/