runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

Running the tests #50

Closed kesla closed 9 years ago

kesla commented 9 years ago

Hey, how do I run the js-tests? They require runtimejs like require('runtimejs/core/net/tcp-socket')(https://github.com/runtimejs/runtime/blob/master/js/test/net/tcp.js#L5) and not (as i would've expected) by their local file - so how do I run them?

facekapow commented 9 years ago

@kesla What I did is I created a folder, copied the helloworld example's package.json and ran npm install and for each test I changed the start command's runtimeify file to the test file and ran npm start

EDIT: OH! And install the tape module.

On my system (OSX Yosemite 10.10.3) all 135 tests pass!

iefserge commented 9 years ago

@kesla there needs to be a runner file that depends on runtimejs like

"dependencies": {
    "bar": "file:../foo/bar"
  }
iefserge commented 9 years ago

going to use postinstall script to avoid copying runtimejs on install