TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask YC: Do you unit test your Javascript?

4 pointsby hbienover 17 years ago
As web applications are using AJAX and effects to create a better UI for the user, more and more Javascript is being written.<p>I unit test most of my server side code with pyunit. But I haven't written a single test for my Javascript yet, but the amount of Javascript I have is almost 2x the amount of server side code.<p>If you do unit test your Javascript, what unit testing library are you using?

3 comments

rsaover 17 years ago
<a href="http://wiki.script.aculo.us/scriptaculous/show/UnitTesting" rel="nofollow">http://wiki.script.aculo.us/scriptaculous/show/UnitTesting</a>
matstcover 17 years ago
YUI has a small unit test framework that I use. Also <a href="http://www.thefrontside.net/crosscheck" rel="nofollow">http://www.thefrontside.net/crosscheck</a> can be used to emulate browsers.
ickyover 17 years ago
Correct Javascript does not imply browser compatibility...