Unit test JavaScript applications with Jasmine | Adobe Developer Connection
yesterday by sunpig
Jasmine is a behavior-driven development (BDD) JavaScript testing framework Pivotal Labs maintains it and makes it available on GitHub under the MIT license. Jasmine allows tests to be written independent of the DOM or other JavaScript frameworks. You run Jasmine in a browser, or headless without a browser by integrating with other frameworks such as Rhino, Envy, or the Jasmine-headless-webkit library.
bdd
tdd
jasmine
javascript
browser
test
testing
adobe
tutorial
headless
automated
development
webdev
frontend
yesterday by sunpig
Testing like the TSA - (37signals)
7 weeks ago by sunpig
Every line of code you write has a cost. It takes time to write it, it takes time to update it, and it takes time to read and understand it. Thus it follows that the benefit derived must be greater than the cost to make it. In the case of over-testing, that’s by definition not the case.
Think of it like this: What’s the cost to prevent a bug? If it takes you 1,000 lines of validation testing to catch the one time Bob accidentally removed the validates_presence_of :name declaration, was it worth it? Of course not (yes, yes, if you were working on an airport control system for launching rockets to Mars and the rockets would hit the White House if they weren’t scheduled with a name, you can test it—but you aren’t, so forget it).
testing
tsa
dhh
rails
ruby
tdd
bdd
programming
software
assurance
quality
confidence
Think of it like this: What’s the cost to prevent a bug? If it takes you 1,000 lines of validation testing to catch the one time Bob accidentally removed the validates_presence_of :name declaration, was it worth it? Of course not (yes, yes, if you were working on an airport control system for launching rockets to Mars and the rockets would hit the White House if they weren’t scheduled with a name, you can test it—but you aren’t, so forget it).
7 weeks ago by sunpig
related tags
adobe ⊕ advice ⊕ application ⊕ assurance ⊕ automated ⊕ bdd ⊖ behaviour ⊕ browser ⊕ class ⊕ code ⊕ confidence ⊕ describe ⊕ design ⊕ dev ⊕ development ⊕ dhh ⊕ double ⊕ fowler ⊕ framework ⊕ frontend ⊕ headless ⊕ it ⊕ jasmine ⊕ javascript ⊕ jonlarkowski ⊕ jqm ⊕ jquery ⊕ jquerymobile ⊕ js ⊕ lark ⊕ let ⊕ martinfowler ⊕ matcher ⊕ mocha ⊕ mock ⊕ node ⊕ nodejs ⊕ object ⊕ practice ⊕ programming ⊕ quality ⊕ rails ⊕ rspec ⊕ ruby ⊕ runner ⊕ shortcut ⊕ should ⊕ smell ⊕ software ⊕ spec ⊕ specify ⊕ stub ⊕ subject ⊕ suite ⊕ tdd ⊕ test ⊕ testing ⊕ tips ⊕ tricks ⊕ tsa ⊕ tutorial ⊕ webdev ⊕Copy this bookmark: