SteveSanderson/knockout — Issue #179: Add some functional tests to the project
Author: ZeusTheTrueGod
Created: 2011-10-20 08:04:14+00:00
State: open

I would like to try to make some BDD examples for the project, because it is a self describing documentation. Cucumber + WebDriver(former selenium).

For example (bdd spec goes below) :

- Knockout allows to make a one way binging via text propery
Given:
html - ... (5-10 lines of html for view)
javascript - ... (5-10 lines of javascript from a first example. Model + knockout.applyBindings() ).
(.., so html + javascript generates some sort of Hello, Knockout )
Open the page in the browser
"Hello" should present on the page
"Knockout" should present on the page
"No javascript errors should be raised on page loading"

This will provide some sort of behavior specification and server as sort of documentation for beginners