azer / prova

Test runner based on Tape and Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

harmony

alfredwesterveld opened this issue · comments

Could the prova binary be enhanced to use harmony (--harmony) like node --harmony

@alfredwesterveld do you have specific reason to not run the tests with node command? like:

node test

Wow azer you respond quickly. node test? I can run single test file using node . This does however not work if I want to run all tests? I used your provided prova binary(npm -g) to run all test but this does not work when using enhancements provided by harmony(--harmony). I am running node v0.11. I would like to pass in these arguments if possible.

I'm not sure how to implement it, any examples ideas ?

I am going to look if I can implement this myself after I read your code. But what needs to happen is that I should be able to parse extra arguments which are not swallowed. Mocha also recently added this option because visionmedia(others) were also using harmony extensions(koa). I try to locate that commit.

let's keep the issue open until we solve the issue

alfredwesterveld@7b2b5e7 is a quick fix so that I can use harmony by spawning a new process which got harmony arguments passed in.

I also fixed this another way(Just came up with this) which does not require any code change. I added the following to my .bashrc:

bash alias p='node --harmony /home/alfred/nodejs/node-v0.11.10-linux-x64/bin/prova'

now I use p which points to your prova bin with added necessary flag.

I think this one can be closed now?

sure thx

Haha no thank you ;). Should have not opened this issue, but think it a little bit more through :$... On the other hand I hope other people might find this helpfull....