Jarvis: Another JavaScript Unit Testing Framework[source]
xml
<glacius:metadata> | |
<title>Jarvis: Another JavaScript Unit Testing Framework</title> | |
<description>A unit testing framework for JavaScript called "Jarvis"</description> | |
<category>Legacy blog posts</category> | |
<category>Programming</category> | |
<category>JavaScript</category> | |
<category>Testing</category> | |
</glacius:metadata> | |
<glacius:macro name="legacy blargh banner"> | |
<properties> | |
<originalUrl>https://tmont.com/blargh/2011/6/jarvis-another-javascript-unit-testing-framework</originalUrl> | |
<originalDate>2011-06-03T21:40:38.000Z</originalDate> | |
</properties> | |
</glacius:macro> | |
<p> | |
NIH (not invented here) is a syndrome from which I suffer. Luckily, I'm pretty good about not | |
suffering from it when somebody else is paying me to do something in a timely manner. But if | |
I'm working on my own personal project, you can bet I will be inventing a universe before | |
releasing something. | |
</p> | |
<p> | |
And out popped <a href="https://jarvis.tmont.com/">Jarvis</a>. Another unit testing framework | |
for JavaScript. | |
</p> | |
<p><code>YAWN.</code></p> | |
<p>Anyway, I wrote my own because:</p> | |
<ol> | |
<li>It's fun (seriously)</li> | |
<li> | |
I've done it before in <a href="https://github.com/tmont/testify">PHP</a> and | |
<a href="https://github.com/tmont/ntestify">C♯</a> | |
</li> | |
<li>I didn't really like the other ones available (disclaimer: I didn't actually look at any of the other ones available)</li> | |
</ol> | |
<p>Clearly, it was a good decision.</p> | |
<h3>Features</h3> | |
<ul> | |
<li>Assertions (ooh!)</li> | |
<li>Assertions on the DOM using jQuery (i.e. Sizzle) selectors</li> | |
<li>Stack traces!</li> | |
<li>Displays fancy diffs for string comparisons!</li> | |
<li><a href="https://jarvis.tmont.com/test/">Uses itself to test itself!</a></li> | |
<li>Gradients! Drop shadows! CSS3! Web 2.0!</li> | |
<li>Exclamation points!</li> | |
</ul> | |
<p>Here's a gratuitous screenshot:</p> | |
<p class="text-center"> | |
<img glacius:src="jarvis-example.png" alt="jarvis example" /> | |
</p> | |
<p> | |
Read more/try a demo at the <a href="https://jarvis.tmont.com/">main site</a>. | |
</p> | |