Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
A lot of developers do an excellent job of unit testing their server-side logic but then leave their client-side javascript as the new "spaghetti code" dumping ground and it doesn't have to be that way! Jasmine is a simple DOM-less javascript testing framework with a familiar RSpec-like syntax that removes most excuses for not testing your code. You will get an overview of Jasmine and how to utilize it in a variety of project environments from vanilla javascript to Rails to jQuery plugins. We will also explore where CoffeeScript and some helper libraries fit into making the testing of your javascript as simple and pleasurable as possible. Help us caption & translate this video! http://amara.org/v/FG9g/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video 'Testing JavaScript with Jasmine,' presented by Tim Tyrrell at the LoneStarRuby Conf 2011, focuses on the importance of unit testing in JavaScript using the Jasmine framework. Tyrrell addresses the common oversight among developers who neglect client-side JavaScript testing while ensuring robust testing for server-side code. He introduces Jasmine as a simple, Behavior-Driven Development (BDD) testing framework with a syntax similar to RSpec, aimed at making JavaScript testing accessible and efficient across different project environments, including vanilla JavaScript, Rails, and jQuery plugins. Key points discussed include: - An introduction to Jasmine and its syntax designed for effective JavaScript unit testing. - A comparison of Jasmine’s structure and syntax with RSpec, emphasizing its ease of use with innovative matchers and methods. - The significance of unit testing with JavaScript, highlighting how untested code can lead to increased complexity and application failures. - The value of structured testing with headless configurations, allowing developers to run tests without UI interactions. - Practical demonstrations of testing methods, illustrated through examples, such as developing a simple calculator and implementing Jasmine within Ruby and jQuery contexts. - Insights into integrating Jasmine with CoffeeScript and the use of plugins for Node.js, enhancing coverage and testing capabilities. Tyrrell concludes by reflecting on the necessity of thorough testing for JavaScript as it becomes a critical aspect of web applications, advocating for the adoption of Jasmine for greater confidence and reliability in front-end development. He also shares that his company, PeopleAdmin, is hiring, inviting questions from the audience to further engage them in the discussion.
Suggest modifications
Cancel