test(emacs/features): add ecukes template
This commit is contained in:
parent
2ba43f1432
commit
89f38b3945
3 changed files with 71 additions and 0 deletions
11
src/emacs/features/emacs.feature
Normal file
11
src/emacs/features/emacs.feature
Normal 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"
|
28
src/emacs/features/step-definitions/emacs-steps.el
Normal file
28
src/emacs/features/step-definitions/emacs-steps.el
Normal 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)
|
||||
;; ...
|
||||
))
|
32
src/emacs/features/support/env.el
Normal file
32
src/emacs/features/support/env.el
Normal 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
|
||||
)
|
Loading…
Reference in a new issue