Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
https://new.npmjs.org/ test coverage
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Graeme Foster  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 5:14 pm
From: Graeme Foster <grae...@gmail.com>
Date: Tue, 10 Jul 2012 14:14:02 -0700 (PDT)
Local: Tues, Jul 10 2012 5:14 pm
Subject: https://new.npmjs.org/ test coverage

In order to soak up its nodey design philosophy I've been looking at the
repo for https://new.npmjs.org/, but I can't find any tests! I've only
dabbled with toy websites myself (at least with node), but when I've played
around I've started with an end-to-end test to kick off the TDD process
(I'm using zombie for this right now).

So this got me wondering - is it weird to write tests for a site like this?
Is it just too simple? Are all of the pieces worth testing already split
off into modules? Even so, there's a fair bit of code left behind and I
can't imagine testing it all manually; maybe I missed something?

How do folks generally test a website built with node?

G.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Isaac Schlueter  
View profile  
 More options Jul 10 2012, 7:15 pm
From: Isaac Schlueter <i...@izs.me>
Date: Tue, 10 Jul 2012 16:15:19 -0700
Local: Tues, Jul 10 2012 7:15 pm
Subject: Re: [nodejs] https://new.npmjs.org/ test coverage
Yeah, I've been wondering the same thing.

There's a very boring todo item there to set up a bootstrap thingie so
that a script will spin up a couchdb and redis instance for
development.  (Right now, I usually point it at the staging DB, or
just the public one, but that's going to be super hazardous once we
start actually building out features for doing package administration
and such.)

Maybe I'll actually do that todo item, and start writing some functional tests.

But so far, all the modules it uses are pretty well covered.  There
are some things that probably out to be split out into separate
pieces, and it'd be nice to have some coverage around the
restart-on-HUP logic.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »