busterjs / buster

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

Support JavaScriptCore #113

Open cjohansen opened 12 years ago

cjohansen commented 12 years ago

Should be able to run Buster tests with jsc on OSX

augustl commented 12 years ago

jsc is basically the same thing as phantom, right? As in, it's a browser environment? Or is it an alternative to node? If the latter, sounds like a thing for 1.1, not 1.0.

cjohansen commented 12 years ago

http://en.m.wikipedia.org/wiki/Javascriptcore#JavaScriptCore

Basically, I want it to be easy to run tests on jsc by writing a small loader script that uses the prebuilt buster-test.js file. So we're talking about some documentation, possibly some feature tests, and some testing.

augustl commented 12 years ago

I just opened a jsc shell on a Mac. There's no browser environment in it. There's no require or commonjs in general, just a load to load other files by path into the global environment.

Is this jsc shell what you want to integrate with?

cjohansen commented 12 years ago

Yup. People use it :) For instance, the mustache guys recently did a "suggest us a test framework" issue, and stated that Rhino and JSC were required platforms.

All I want is for tests to run on these. I've done Rhino with the Sinon tests, it's not too much work: https://github.com/cjohansen/Sinon.JS/blob/master/test/rhino/run.js. It uses env.js to behave like a browser, but that's an OK place to start for now.

augustl commented 12 years ago

Ah, env.js is indeed the missing piece of the puzzle. Sounds good to me!