Giter Club home page Giter Club logo

templates's Introduction

CakeDC Templates Plugin

Bake Status Downloads Latest Version

This plugin allows you to quickly bake your applications with collection-like operations over your models and high test coverage (100%) for all your baked code.

In short, this plugin includes custom templates for the bake code generator. It also provides a wizard which will help you choose the right options for your bake commands.

Generated code focuses on the "fat models" mantra - they will have most of the logic for handling your data, and sending messages back to the controller to do the flow control.

One might ask, "why would I need to test model CRUD code that is already checked with cake core tests?"

The answer is simple: when you extend model features with callbacks and different behavior unexpected things might happen with model configurations and some of the CRUD operations can be easily broken. The same applies to controller level tests.

Requirements

  • CakePHP 2.x
  • PHP 5.2.8+

Documentation

For documentation, as well as tutorials, see the Docs directory of this repository.

Support

For bugs and feature requests, please use the issues section of this repository.

Commercial support is also available, contact us for more information.

Contributing

This repository follows the CakeDC Plugin Standard. If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our Contribution Guidelines for detailed instructions.

License

Copyright 2007-2015 Cake Development Corporation (CakeDC). All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

templates's People

Contributors

skie avatar lorenzo avatar predominant avatar gabrielpreston avatar real34 avatar ceeram avatar jsposato avatar yeliparra avatar steinkel avatar ajibarra avatar shama avatar

Stargazers

Pranav avatar Vasileios Paraskevas avatar Angus H. avatar Robert Annett avatar Antonio Vassell avatar Chris Vogt avatar kevin avatar Wira SATYAWAN avatar Hakaru Hirose avatar Darwin Suarez avatar Janos Csikos avatar Azrael Ir avatar Jon Lyles avatar Ross Chapman avatar Artem Kovardin avatar Sam Sherlock avatar Joey Trapp avatar Ben McClure avatar Richard Scoop avatar Benny Leonard Enrico Panggabean avatar Lubomír Štork avatar Vitor Pacheco avatar Brandon Plasters avatar Hiroki Shimizu avatar  avatar Andrew Weir avatar Larry E. Masters avatar Ryan Morris avatar  avatar Essemme avatar  avatar Fabio Sussetto avatar Daniel Pakuschewski avatar Takashi Nojima avatar Justin Yost avatar Jose Diaz-Gonzalez avatar Kaz Watanabe avatar Paul Josephson avatar Ken’ichiro Oyama avatar Yasuo Harada avatar Joshua McNeese avatar  avatar Renan Gonçalves avatar Kevin van Zonneveld avatar Juan Basso avatar alan blount avatar

Watchers

Chris Burke avatar  avatar Larry E. Masters avatar  avatar alexjobs avatar Lubomír Štork avatar Rafael Queiroz avatar James Watts avatar  avatar Matthew Dunham avatar  avatar James Cloos avatar Marcelo Rocha avatar Shishir Singh avatar Adam Rusinowski avatar Andrej Griniuk avatar Essam Ayari avatar Kenichiro Kojima avatar  avatar Antonio Vassell avatar Andrés Campanario avatar  avatar  avatar

templates's Issues

Ignore AppTestCase

When running Simpletest and extending using AppTestCase.php, i would recommend to ignore the class AppTestCase so it wont count.

All that is needed is to add this code before the 'class' definition :

/**
 * Ignore base class.
 */
    SimpleTest::ignore('AppTestCase');

Extending templates

We have developed a few templates of our own and we'd like to find a way to use ours and this plugin. Is there a way to extend a plugin that does this type of functionality?

I tried Composer, but since we have similar folder structures, our stuff always wipes out yours. Any ideas or examples would be awesome!

Incorrect AppMock calls in test case not using AppTestCase

Test cases generated without the AppTestCase option cannot be run.

To reproduce:

  • Bake a test without the -appTestCase option
  • Execute the related test case

What happens?

An error 'Fatal error: Class 'AppMock' not found' is displayed

Expected:

  • The test case must run (maybe some tests could be red by default)
  • There must not be any reference to AppTestCase specific code. It includes: AppModel, $_testsToRun and fixtures autoloading

Make all tests extend AppTestCase by default

In the current version, all baked tests are generated without extending AppTestCase.
To bake test cases extending AppTestCase one have to run a command using the "-appTestCase" option

This ticket is created to discuss a change and make "-appTestCase" the default behavior. The user would have an option "-noAppTestCase" available if he wants tests to be baked with test cases extending CakeTestCase...

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.