Jasmine-Node TDD

67 views
Skip to first unread message

Ishan Gupta

unread,
Feb 1, 2015, 1:00:01 PM2/1/15
to nod...@googlegroups.com
Hi folks,

I am trying to use Jasmine-Node in my ubuntu machine. I am little bit unfortunate in using it and need help.
I installed the module globally using "npm install -g jasmine-node" . It installed successfully but whenever i am trying to run my spec files it doesn't show any output.
I might be missing something. Please help  me, i am new to node.js.

Best,
Ishan

Tim Kuijsten

unread,
Feb 1, 2015, 2:23:50 PM2/1/15
to nod...@googlegroups.com
Is the file name ending with .spec.js?

-Tim

Ishan Gupta schreef op 01-02-15 om 19:00:
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to nodejs+un...@googlegroups.com
> <mailto:nodejs+un...@googlegroups.com>.
> To post to this group, send email to nod...@googlegroups.com
> <mailto:nod...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/e8fbc79a-4646-46b8-afa4-5c25c52e6208%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/e8fbc79a-4646-46b8-afa4-5c25c52e6208%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Ishaan Gupta

unread,
Feb 1, 2015, 2:51:02 PM2/1/15
to nod...@googlegroups.com
Yes,
The file name ends with .spec.js .
When i use the command "jasmine-node abc.spec.js",,,,,i don't get anything on the console.

Best,
Ishan Gupta

On Mon, Feb 2, 2015 at 12:51 AM, Tim Kuijsten <in...@netsend.nl> wrote:
Is the file name ending with .spec.js?

-Tim

Ishan Gupta schreef op 01-02-15 om 19:00:
Hi folks,

I am trying to use Jasmine-Node in my ubuntu machine. I am little bit
unfortunate in using it and need help.
I installed the module globally using "npm install -g jasmine-node" . It
installed successfully but whenever i am trying to run my spec files it
doesn't show any output.
I might be missing something. Please help  me, i am new to node.js.

Best,
Ishan

--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send

To post to this group, send email to nod...@googlegroups.com
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/54CE7CD0.7010705%40netsend.nl.

Sean Ingham

unread,
Feb 21, 2015, 12:21:41 PM2/21/15
to nod...@googlegroups.com
Hi Ishan,

I had this same issue. The jasmine-node executable includes the line '#!/usr/bin/env node' - which means it should be run with the binary named 'node'. However if you've installed node.js via a debian/ubuntu package manager the node.js binary is named 'nodejs', and 'node' refers to a different package altogether. 

The solution is to remove the 'node' package (presuming you don't need it):

sudo apt-get remove node

Then symlink 'nodejs' to 'node':

sudo ln -s /usr/bin/nodejs /usr/bin/node


Sean.

Aria Stewart

unread,
Feb 21, 2015, 4:51:46 PM2/21/15
to nod...@googlegroups.com

> On 21 Feb 2015, at 12:21, Sean Ingham <se...@design4sale.co.uk> wrote:
>
> Hi Ishan,
>
> I had this same issue. The jasmine-node executable includes the line '#!/usr/bin/env node' - which means it should be run with the binary named 'node'. However if you've installed node.js via a debian/ubuntu package manager the node.js binary is named 'nodejs', and 'node' refers to a different package altogether.
>
> The solution is to remove the 'node' package (presuming you don't need it):
>
> sudo apt-get remove node
>
> Then symlink 'nodejs' to 'node':
>
> sudo ln -s /usr/bin/nodejs /usr/bin/node


Or better here: install nodejs-legacy package, which supplies the symlink, or use the nodesource .deb from deb.nodesource.com to install nodejs, which is a modern compile without the distribution baggage.

Aria
Reply all
Reply to author
Forward
0 new messages