#Simple Web Calculator
It is a simple web caculator for Behavior Driven Development (BDD) example.
The app is written in Python with Flask framework and use Ruby's Cucumber to run the step files.
Feature files are put in the "features" folder and step files are in the "features/step_definitions".
DEMO
Screenshot
Installation
-
You need install Python and Ruby first.
-
Change driectory.
$ cd WebCalculator
-
Install Python required packages.
$ pip install -r requirements.txt
-
Install Cucumber.
$ gem install cucumber
-
Install Watir web driver.
$ gem install watir
-
Install Rspec.
$ gem install rspec
-
Try to run the unit tests. It should all pass.
$ py.test CalculatorTest.py
-
Run web app. The app will run on 127.0.0.1:5000
$ python run.py
-
Run Cucumber.
$ cucumber features/calculator.feature
-
You done!