arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Crash when no top-level "tests" folder is present #112

Open MarcusRiemer opened 10 years ago

MarcusRiemer commented 10 years ago

This seems like a minor issue to me, when running laika without a "tests" folder in the TLD, the whole thing crashes on cleanup.

[laika log] accepting the following extensions: (js)

  injecting laika...
  loading phantomjs...
[app touch log] 
Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

[[[[[ ~/projects/webIsoRogue/page ]]]]]

=> Started proxy.
[app touch log] I20140324-13:16:05.205(1)? laika code injected and listening on: 25366
[app touch log] => Started your app.
  loading initial app pool...
[app touch log] 
=> App running at: http://localhost:15350/
[laika log] using nodejs bin(from meteorite): /home/marcus/.meteor/tools/8e197f29c5/bin/node
[server log] Filling in Abilities ...
[server log] Filling in Items ...
[server log] Filling in Races ...
[server log] Filling in Archetypes ...
[server log] Filling in demo games ...
[server log] Filling in dungeons ...
[laika log] using nodejs bin(from meteorite): /home/marcus/.meteor/tools/8e197f29c5/bin/node
[server log] laika code injected and listening on: 15147
[server log] Filling in Abilities ...
[server log] Filling in Items ...
[server log] Filling in Races ...
[server log] Filling in Archetypes ...
[server log] Filling in demo games ...
[server log] Filling in dungeons ...
  cleaning up injected code

fs.js:684
  return binding.stat(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory './tests'
    at Object.fs.statSync (fs.js:684:18)
    at identifyTests (/usr/lib/node_modules/laika/bin/_laika:142:21)
    at /usr/lib/node_modules/laika/bin/_laika:133:9
    at Array.forEach (native)
    at AppPool.onAppPoolReady (/usr/lib/node_modules/laika/bin/_laika:132:12)
    at AppPool.EventEmitter.emit (events.js:92:17)
    at App.createInitialPool (/usr/lib/node_modules/laika/lib/app_pool.js:30:12)
    at App.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (/usr/lib/node_modules/laika/lib/app.js:56:14)
    at Socket.EventEmitter.emit (events.js:117:20)