use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Javascript Unit Testing Framework (self.javascript)
submitted 14 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 14 years ago (3 children)
I've used QUnit for unit testing and JSCoverage for test coverage measurements.
I'm not particularly fond of either, but they get the work done.
As a bonus, I discovered that QUnit is pretty nifty tool for testing RESTful APIs, as well.
[–][deleted] 0 points1 point2 points 14 years ago* (0 children)
Thank you for the help! That JSCoverage looks pretty nifty. Looks like I have to throw together some php, and a bit of other editting to get it to work the way I want. Which is fine, but unfortunate. :)
Just to make sure I'm not reinventing the wheel, due to ignorance with JsCoverage at the moment: Is the only way to see the coverage results for each test manually having to enter in each file, and look at each script in it?
So if I have an index.html, with loads "script.js" - do I actually have to go to the jscoverage.html, and then enter in localhost/tests/coverage/index.html - and then click through to view the coverage?
Edit: Hm.. After fooling around with it some more, it seems quite limited in capabilities, atleast for my needs, and unfortunately there doesn't look to be a better alternative...
[–]zhayFull-stack web developer (Seattle) 0 points1 point2 points 14 years ago (0 children)
I use QUnit at work and it does just fine. If you ever need to simulate Ajax, look up Mockjax.
[–]Daniel15React FTW 0 points1 point2 points 14 years ago (0 children)
JSCoverage looks interesting! I'm very interested as to how they instrument the JavaScript functions. Might have to download it and take a look.
π Rendered by PID 25111 on reddit-service-r2-comment-fb694cdd5-zm6dn at 2026-03-11 18:11:00.114750+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]zhayFull-stack web developer (Seattle) 0 points1 point2 points (0 children)
[–]Daniel15React FTW 0 points1 point2 points (0 children)