test(emacs/features): add ecukes template

This commit is contained in:
Soonho Kong 2014-09-11 12:33:49 -07:00
parent 2ba43f1432
commit 89f38b3945
3 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,11 @@
Feature: Do Some things
In order to do something
As a user
I want to do something
Scenario: Do Something
Given I have "something"
When I have "something"
Then I should have "something"
And I should have "something"
But I should not have "something"

View file

@ -0,0 +1,28 @@
;; This file contains your project specific step definitions. All
;; files in this directory whose names end with "-steps.el" will be
;; loaded automatically by Ecukes.
(Given "^I have \"\\(.+\\)\"$"
(lambda (something)
;; ...
))
(When "^I have \"\\(.+\\)\"$"
(lambda (something)
;; ...
))
(Then "^I should have \"\\(.+\\)\"$"
(lambda (something)
;; ...
))
(And "^I have \"\\(.+\\)\"$"
(lambda (something)
;; ...
))
(But "^I should not have \"\\(.+\\)\"$"
(lambda (something)
;; ...
))

View file

@ -0,0 +1,32 @@
(require 'f)
(defvar emacs-support-path
(f-dirname load-file-name))
(defvar emacs-features-path
(f-parent emacs-support-path))
(defvar emacs-root-path
(f-parent emacs-features-path))
(add-to-list 'load-path emacs-root-path)
(require 'emacs)
(require 'espuds)
(require 'ert)
(Setup
;; Before anything has run
)
(Before
;; Before each scenario is run
)
(After
;; After each scenario is run
)
(Teardown
;; After when everything has been run
)