pandastrike / haiku9

Static Site Publishing
ISC License
8 stars 2 forks source link

`npm test` => all tests fail #61

Closed f1337 closed 8 years ago

f1337 commented 8 years ago
> haiku9@1.1.0-beta-14 test /vagrant/haiku9
> coffee test/index.coffee

 Haiku9 static-site generation
   Compile Stylus files AssertionError: File site.css not built
 Haiku9 static-site generation
   Passes through json files AssertionError: File manifest.json not built
 Haiku9 static-site generation
   Compiles Jade files AssertionError: File index.html not built
 Haiku9 static-site generation
   Compiles CoffeeScript files AssertionError: File site.js not built
 Haiku9 serve task
   Starts a local server on the default port AssertionError: Server did not respond
 Haiku9 static-site generation
   Passes through xml files AssertionError: File browserconfig.xml not built
Beginning task 'build'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Beginning task 'build'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Task 'survey/pass-thru' completed in 394ms.
Beginning task 'build'...
Beginning task 'survey/image'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Task 'survey/image' completed in 6ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 5ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 32ms.
Task 'survey/jade' completed in 40ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 3ms.
Beginning task 'survey/markdown'...
Beginning task 'build'...
Task 'survey/markdown' completed in 2ms.
Beginning task 'survey'...
Beginning task 'survey/posts'...
Beginning task 'survey/pass-thru'...
Task 'survey/posts' completed in 1ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 5ms.
Task 'survey' completed in 465ms.
Task 'build' completed in 484ms.
Task 'survey/pass-thru' completed in 182ms.
Beginning task 'survey/image'...
Task 'survey/image' completed in 8ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 2ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Beginning task 'build'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Task 'data' completed in 14ms.
Task 'survey/jade' completed in 15ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 1ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 1ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 1ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 7ms.
Task 'survey' completed in 218ms.
Task 'build' completed in 229ms.
Task 'survey/pass-thru' completed in 200ms.
Beginning task 'survey/image'...
Task 'survey/image' completed in 6ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 2ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 10ms.
Task 'survey/jade' completed in 13ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 1ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 1ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 1ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 2ms.
Task 'survey' completed in 228ms.
Task 'build' completed in 237ms.
Task 'survey/pass-thru' completed in 220ms.
Beginning task 'survey/image'...
Beginning task 'build'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Task 'survey/image' completed in 9ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 0ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 5ms.
Task 'survey/jade' completed in 6ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 1ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 2ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 0ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 4ms.
Task 'survey' completed in 252ms.
Task 'survey/pass-thru' completed in 156ms.
Beginning task 'survey/image'...
Task 'build' completed in 259ms.
Task 'survey/image' completed in 2ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 2ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 5ms.
Task 'survey/jade' completed in 8ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 1ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 1ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 0ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 1ms.
Task 'survey' completed in 174ms.
Task 'build' completed in 183ms.
Task 'survey/pass-thru' completed in 80ms.
Beginning task 'survey/image'...
Task 'survey/image' completed in 2ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 1ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 3ms.
Task 'survey/jade' completed in 4ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 1ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 1ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 0ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 1ms.
Task 'survey' completed in 91ms.
Task 'build' completed in 97ms.
f1337 commented 8 years ago

@diminish7 I'm guessing this has something to do with #60.

f1337 commented 8 years ago

It looks like the tests pass in isolation (npm test coffee is green), but the suite (npm test) does not pass.

diminish7 commented 8 years ago

@f1337 Hmmm... Bizarre, the test suite passes for me. Might need to pair on this since I can't reproduce locally.

diminish7 commented 8 years ago

@f1337 It's interesting that your output has the failures before any of the build output, so it is just failing right away. Like doing the loop where it checks for the file for 5 seconds, it just jumps straight to the assertion. I wonder if there's something different with date math on our versions of node? (I'm on 5.9.0) Or possibly mac vs linux?

f1337 commented 8 years ago

When I checkout SHA a9e8b4add80ec7cce93dfaefbf07c9d380387655 (before #60 was merged), the tests pass:

vagrant@vagrant-ubuntu-trusty-64:/vagrant/haiku9$ npm test

> haiku9@1.1.0-beta-13 test /vagrant/haiku9
> coffee test/index.coffee

Beginning task 'build'...
Beginning task 'survey'...
Beginning task 'survey/pass-thru'...
Task 'survey/pass-thru' completed in 100ms.
Beginning task 'survey/image'...
Task 'survey/image' completed in 6ms.
Beginning task 'survey/stylus'...
Task 'survey/stylus' completed in 6ms.
Beginning task 'survey/jade'...
Beginning task 'data'...
Task 'data' completed in 9ms.
Task 'survey/jade' completed in 15ms.
Beginning task 'survey/coffee'...
Task 'survey/coffee' completed in 6ms.
Beginning task 'survey/markdown'...
Task 'survey/markdown' completed in 5ms.
Beginning task 'survey/posts'...
Task 'survey/posts' completed in 0ms.
Beginning task 'survey/bundle'...
Task 'survey/bundle' completed in 5ms.
Task 'survey' completed in 144ms.
Task 'build' completed in 156ms.
 Haiku9 static-site generation
   Run the build task
   Compile Jade files
   Compile Stylus files
   Compile CoffeeScript files
   Passes through xml files
   Passes through json files
 Haiku9 serve task
   Starts a local server on the default port