Giter Club home page Giter Club logo

coldcukes's Introduction

ColdCukes

ColdCukes is a ColdFusion/CFML project that parses Gherkin Feature files and creates associated TestBox BDD Unit Test "stub" files

Diagram

Diagram of ColdCukes in Action

Requirements

  • only verified on Adobe CF 10
  • only verified on Window 7
  • tested with TestBox 2.2, which is required to run the generated tests

Installation

  1. Clone this repo locally to your web root
  2. Run it locally from http://localhost/ColdCukes - you should be able to push the button and run it with no changes
  3. It should output which TestBox files were generated. You can look at them to see the magic. NOTE that if the test files were already there, it will seem like nothing changed

Usage

  • see index.cfm
  1. If TestBox is set up locally, you can run any Unit Tests in the /tests/specs directory at http://localhost/ColdCukes-public/tests/runner.cfm
  2. Move/copy/merge stub files from /tests/stubs to /tests/specs in order to run them via the runner above
  3. Add new directories with new Gherkin *.feature files in /testData, and run http://localhost/ColdCukes again, to create new Unit Test stub files

Gherkin Feature Files

TestBox BDD/Gherkin Test Files

TODO List

  1. Code reviews/suggestions welcome
  2. Ability to parse more complex Gherkin feature files (NOTE: it doesn't even handle AND steps yet)
  3. Ability to add more complex TestBox test stub files?
  4. Ability to choose other config options like tab characters and directory filters?
  5. Test in Lucee
  6. Test in Railo
  7. Test in Adobe ColdFusion 8-9, and 11
  8. Test on Linux
  9. Text on Mac

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

  • Version: Alpha 0.001 -- 2016-01-26
  • Version: Alpha 0.002 -- 2016-01-27

Credits

License

MIT License: https://github.com/Fidano/ColdCukes/blob/master/LICENSE

coldcukes's People

Contributors

aqlong avatar elpete avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.