Writing Unit Tests For WordPress Plugins | Smashing Coding
12 weeks ago by timd
"The unit tests for my calendar use QUnit, but they really use just three functions: test, expect and ok. This article shows you how to integrate unit tests into your WordPress plugin, where to write unit tests and how they can help you."
You can *test* Wordpress? Wow. Who knew?
javascript
plugins
wordpress
testing
tests
tdd
bdd
unittesting
unittests
You can *test* Wordpress? Wow. Who knew?
12 weeks ago by timd
The Secret Ninja Cucumber Scrolls
february 2012 by timd
Cucumber documentation (covers Sinatra and other non-Rails frameworks)
bdd
cucumber
rails
ruby
tdd
february 2012 by timd
My top 7 RSpec best practices | Dmytro Shteflyuk's Home
january 2012 by timd
I use RSpec in all my projects. It’s really hard to overemphasize how helpful it is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many ways to make your specs awful: horribly slow, over-bloated, even non-readable sometimes. I do not want to teach you BDD and RSpec here, but instead I will give you some ideas how to improve your specs quality and increase efficiency of your BDD workflow.
rspec
bdd
rails
ruby
testing
tdd
agile
january 2012 by timd
Jasmine: BDD for your JavaScript
november 2011 by timd
"Jasmine is a behavior-driven development framework for testing your JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests."
bdd
development
framework
javascript
testing
tdd
november 2011 by timd
Unit Testing in Xcode 4 Quick Start Guide | Ray Wenderlich
october 2011 by timd
"We’ll cover how to set up Xcode to use three different unit testing frameworks:
OCUnit, which is the unit testing framework built into Xcode
GHUnit, which is a third party framework with some extra cool features
OCMock, which helps you write mock objects to aid tricky testing scenarios"
bdd
tdd
test
testing
objectivec
ios
code
development
xcode
OCUnit, which is the unit testing framework built into Xcode
GHUnit, which is a third party framework with some extra cool features
OCMock, which helps you write mock objects to aid tricky testing scenarios"
october 2011 by timd
Sunetos, Inc. :: Real Life iOS project using TDD Techniques
october 2011 by timd
"I just finished a short-term iOS project where I used TDD (Test Driven Development) techniques to good advantage. I know I ended up with a cleaner design and better code than I would have otherwise.
I am not a TDD expert, nor am I a TDD purist, but I wanted to share my experience and lessons learned while it was fresh. Hopefully this will encourage other developers to add more testing to their development diet."
bdd
tdd
ios
objectivec
development
code
I am not a TDD expert, nor am I a TDD purist, but I wanted to share my experience and lessons learned while it was fresh. Hopefully this will encourage other developers to add more testing to their development diet."
october 2011 by timd
Sunetos, Inc. :: Introduction to Test Driven Development (TDD) for iOS apps (Part 1 of 4)
october 2011 by timd
"We will explore TDD in this tutorial by developing a simple iPhone app that plays Tic-Tac-Toe. Because our focus is on TDD, we will spend most of our time learning how to think in a “test first” manner."
tdd
bdd
objectivec
iphone
ios
development
code
october 2011 by timd
iamthewalr.us : OCMock and the iPhone
september 2011 by timd
Additional step needed to get OCMock running properly with XCode4
[See the Copy Files phase section]
tdd
bdd
testing
ocmock
ios
development
code
[See the Copy Files phase section]
september 2011 by timd
Sunetos, Inc. :: Creating an Xcode project template with GHUnit and OCMock
september 2011 by timd
(Part) process for adding GHUnit and OCMock to an iOS project [needs additional steps from iamthewalr.us]
ocmock
ghunit
tdd
bdd
testing
ios
objectivec
september 2011 by timd
iPhone SDK: UIViewController Testing & TDD | Pathfinder Software
september 2011 by timd
Unfortunately there are not enough examples out there on how to test view controllers with the iPhone SDK. My hope is to remedy that a bit by sharing some techniques I have been using to tackle the problem, particularly in keeping with the spirit of TDD along the way.
uiviewcontroller
ios
testing
tdd
bdd
viewcontroller
viewcontrollers
ghunit
ocmock
september 2011 by timd
Testing iPhone View Controllers | The Carbon Emitter
september 2011 by timd
"I have been writing tests around my iPhone apps’ view controllers in order to follow the same TDD practices we use in other environments. Writing tests first has changed the way I structure my code in a couple of ways which I think offer immediate and emergent benefits for my applications. Most of an iPhone application’s business logic is implemented in its view controllers. Testing those controllers is therefore a priority if I want to have a well tested application.
Below are some examples of the sort of tests I have written for my view controllers using GTM, Hamcrest, and OCMock (our iPhone Unit Testing Toolkit). Hopefully this can serve as a starting point for the tests you could be writing for your own projects.
ocmock
ios
testing
tdd
bdd
viewcontroller
viewcontrollers
uiviewcontrollers
Below are some examples of the sort of tests I have written for my view controllers using GTM, Hamcrest, and OCMock (our iPhone Unit Testing Toolkit). Hopefully this can serve as a starting point for the tests you could be writing for your own projects.
september 2011 by timd
GHUnit: Installing
september 2011 by timd
Instructions for adding GHUnit testing framework to iOS apps.
ghunit
tdd
bdd
code
ios
development
spec
tests
testing
september 2011 by timd
iOS Integration Testing
august 2011 by timd
"Today we’re happy to announce KIF, the “Keep It Functional” framework. KIF allows for realistic iOS integration testing through simulated user interaction. We developed KIF to meet a few goals:
KIF requires minimal setup to run a test suite
KIF lets you develop your tests in the same language as the rest of your code to minimize learning and adaptation layers
KIF can be easily extended to fit your needs
KIF works in continuous integration (CI) setups"
testing
tdd
bdd
square
unittesting
development
code
apple
ios
iphone
KIF requires minimal setup to run a test suite
KIF lets you develop your tests in the same language as the rest of your code to minimize learning and adaptation layers
KIF can be easily extended to fit your needs
KIF works in continuous integration (CI) setups"
august 2011 by timd
How do I test my code with Minitest?
august 2011 by timd
Tutorial/guide for Ruby testing with Minitest
ruby
testing
minitest
tdd
bdd
rails
development
code
august 2011 by timd
just few tuts: derailed_duke ~ now test any website using cucumber as an independent testing utility
august 2011 by timd
"derailed_duke ~ now test any website using cucumber as an independent testing utility"
cucumber
testing
tdd
bdd
rails
ruby
development
code
august 2011 by timd
Test Driven Development for iPhone –
june 2011 by timd
Here at Blazing Cloud we really like Test-Driven Development (TDD). We try to use it for all of our development projects, and we recently learned how to do it for IPhone development.
tdd
bdd
ios
objectivec
development
code
june 2011 by timd
www.hans-eric.com » Tutorial: Getting Started With UISpec
june 2011 by timd
This is a Quick Start Guide that shows how to get you started with Acceptance Test Driven Development for the iPhone, using UISpec.
uispec
tdd
bdd
development
code
iphone
ios
objectivec
june 2011 by timd
Documentation - uispec - UISpec Documentation - Behavior Driven Development for the iPhone - Google Project Hosting
june 2011 by timd
UISpec is a Behavior Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI. It is modeled after the very popular RSpec for Ruby, where you express executable examples of the expected behavior of your code.
uispec
tdd
bdd
iphone
ios
development
code
objectivec
june 2011 by timd
rspec best practices - Google Docs
march 2011 by timd
"RSpec is a great tool in the behavior driven design process of writing human readable specifications that direct and validate the development of your application. Follows some guidelines, taken from the literature resources and from our experience."
rspec
tdd
bdd
bestpractice
testing
development
code
march 2011 by timd
testing named scopes - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
march 2011 by timd
"Everyone was psyched when Nick Kallen’s has_finder plugin was added to Rails as named_scope. They’re powerful, particularly when chaining.
One disadvantage is that they are so easy to create, people want their tests to be equally concise, which is often impossible.
Two related “testing named scopes” questions have come up recently on the thoughtbot training mailing list and the shoulda mailing list."
testing
tdd
bdd
scopes
rails
development
code
One disadvantage is that they are so easy to create, people want their tests to be equally concise, which is often impossible.
Two related “testing named scopes” questions have come up recently on the thoughtbot training mailing list and the shoulda mailing list."
march 2011 by timd
Railsdog | Cucumber Testing Tips
february 2011 by timd
"Here are some of the testing related tips I use while working on Spree"
rails
cucumber
testing
rspec
tdd
bdd
february 2011 by timd
Acceptance testing using Capybara's new RSpec DSL - Jeff Kreeftmeijer
february 2011 by timd
"...Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A lot has changed since. Besides the helpers, it got its own RSpec acceptance testing DSL recently, essentially eating Steak’s functionality and turning it into a complete acceptance testing solution (on top of RSpec)."
steak
capybara
rspec
testing
bdd
tdd
rails
february 2011 by timd
Acceptance tests with Cucumber, Devise, Omniauth and Twitter - Codegram
february 2011 by timd
While building our new website, we decided to protect the admin using a really simple way: we can only access it signing in with Twitter. There are already some blog posts and documentation about using Devise, Omniauth, Twitter and Cucumber, but I couldn't find anything that really fitted my needs.
cucumber
omniauth
devise
testing
rails
development
code
tdd
bdd
authentication
february 2011 by timd
Improving your tests with Capybara custom selectors | Plataforma Tecnologia Blog
february 2011 by timd
Here at PlataformaTec we like to use Capybara for acceptance tests. Recently we have discovered the custom selectors feature in Capybara and we would like to share with you how that feature helped us to improve our tests.
rails
capybara
test
testing
tdd
bdd
cucumber
rspec
ruby
development
code
how-to
february 2011 by timd
Tea-Driven Development :: Features != User Stories
december 2010 by timd
Subtleties of user stories
rspec
rails
development
code
testing
bdd
tdd
december 2010 by timd
Introduction to Outside-in Development with Cucumber on Vimeo
october 2010 by timd
"This is a basic introduction to integration testing with cucumber. In it, I describe how to use cucumber and rspec to implement a feature in a web application, emphasizing the importance of writing tests before code, which is often referred to as TDD (test-driven development) or BDD (behavior-driven development, a refinement of the original TDD)."
testing
bdd
tdd
cucumber
rspec
rails
code
development
october 2010 by timd
Getting started with Autotest - Continuous Testing
september 2010 by timd
Autotest makes your coding session even more productive as it automatically runs a subset of your test suite each time you change a file. Autotest is smart – it figures out which subset to run based on the files you’ve changed. Think of it as Continuous Testing.
Autotest source code is well-documented (rdoc) but finding a high level overview online is a little more challenging. This article will get you up and running in no time, so that you may concentrate on writing code. Let’s get Started!
rspec
autotest
testing
tdd
bdd
rails
code
development
Autotest source code is well-documented (rdoc) but finding a high level overview online is a little more challenging. This article will get you up and running in no time, so that you may concentrate on writing code. Let’s get Started!
september 2010 by timd
pivotal's cedar at master - GitHub
june 2010 by timd
BDD-style testing using Objective-C
objective-c
objectivec
iphone
code
development
testing
bdd
tdd
june 2010 by timd
edgecase's ruby_koans at master - GitHub
january 2010 by timd
The Ruby Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language.
ruby
testing
rubyonrails
learning
tutorial
tdd
january 2010 by timd
Our Project Dashboard with Pivotal Tracker - NOOP.NL
november 2009 by timd
In our team we use Pivotal Tracker to track the features of our amazing people search tool called Sociotoco Search. We're using Pivotal Tracker because it's free.
And it's simple.
And it looks good.
And it's actually quite usable.
Read more: http://www.noop.nl/2009/10/our-project-dashboard-with-pivotal-tracker.html#ixzz0VtqVUNRy
agile
development
projectmanagement
scrum
pivotaltracker
bdd
tdd
testing
And it's simple.
And it looks good.
And it's actually quite usable.
Read more: http://www.noop.nl/2009/10/our-project-dashboard-with-pivotal-tracker.html#ixzz0VtqVUNRy
november 2009 by timd
BDD Workshop
june 2009 by timd
JCF's BDD workshop notes
bdd
testing
tdd
development
rails
tutorial
code
june 2009 by timd
Understanding RSpec Stories - a Tutorial
june 2008 by timd
Understanding RSpec Stories - a Tutorial
rspec
bdd
tdd
programming
code
ruby
rails
rubyonrails
testing
development
tutorial
june 2008 by timd
related tags
agile ⊕ apple ⊕ authentication ⊕ autotest ⊕ bdd ⊕ bestpractice ⊕ capybara ⊕ code ⊕ cucumber ⊕ development ⊕ devise ⊕ framework ⊕ ghunit ⊕ how-to ⊕ howto ⊕ ios ⊕ iphone ⊕ javascript ⊕ learning ⊕ minitest ⊕ objective-c ⊕ objectivec ⊕ ocmock ⊕ omniauth ⊕ pivotaltracker ⊕ plugins ⊕ programming ⊕ projectmanagement ⊕ rails ⊕ rspec ⊕ ruby ⊕ rubyonrails ⊕ scopes ⊕ scrum ⊕ spec ⊕ square ⊕ steak ⊕ stubs ⊕ tdd ⊖ test ⊕ testdrivendevelopment ⊕ testing ⊕ tests ⊕ tutorial ⊕ uispec ⊕ uiviewcontroller ⊕ uiviewcontrollers ⊕ unittesting ⊕ unittests ⊕ viewcontroller ⊕ viewcontrollers ⊕ wordpress ⊕ xcode ⊕Copy this bookmark: