javascriptcygwinyuinode.jsyeti

Need help with how to start using YUI YETI in Cygwin for JS testing


I'm new to a lot of things that YETI requires to run, and I've made it through most of the steps to get it to work. I have installed cygwin so I can run node.js and npm (I used these instructions). Once done, I ran npm install yeti, and yeti installed. Now I can type things like this:

enter image description here

This is where I'm having problems. I can't figure out how to get yeti to run the tests in demo.html. I can open up my browser to file:///C:/test/demo.html and I can see the tests run (it's a YUI Test) so I know that the problem is not demo.html being broken. Also, when I try to run yeti as a server (yeti --server), It sits there after the line "to run and report the results" and doesn't let me do anything unless I exit with ctrl-c, although I can go to localhost:8000 and see this:

enter image description here

If I try opening up a new cygwin console and doing this:

enter image description here

It gives me a bunch of errors that I don't understand.

Help!


Solution

  • How I did it on ubuntu:

    close terminal and open it again

    curl http://npmjs.org/install.sh | sh
    

    alfred@alfred-laptop:~/node/stackoverflow/4833633$ yeti simple.html
    Waiting for results. When you're done, hit Ctrl-C to exit.
    ✔ Example Suite on Chrome (8.0.552.237) / Linux
       6 passed, 0 failed

    ✔ Example Suite on Firefox (3.6.13) / Linux
       6 passed, 0 failed

    Success :)

    Some extra information about my distro

    alfred@alfred-laptop:~/node/stackoverflow/4833633$ cat /etc/issue
    Ubuntu 10.10 \n \l
    
    alfred@alfred-laptop:~/node/stackoverflow/4833633$ python --version
    Python 2.6.6
    
    alfred@alfred-laptop:~/node/stackoverflow/4833633$ node -v
    v0.2.6
    
    alfred@alfred-laptop:~/node/stackoverflow/4833633$ npm -v
    0.2.15
    
    alfred@alfred-laptop:~/node/stackoverflow/4833633$ npm ls installed | grep yeti
    npm info it worked if it ends with ok
    npm info using npm@0.2.15
    npm info using node@v0.2.6
    yeti@0.1.2               The YUI Easy Testing Interface    =reid active installed remote stable YUI web app YUITest TDD BDD yui3 test
    npm ok