GithubHelp home page GithubHelp logo

k3-simpletest's Introduction

What is K3-SimpleTest

It is an alternative unit testing module for the Kohana 3 framework.

Usage

Using K3-SimpleTest is easy!

1) Write A Unit Test

By convention, these would live at application/tests/unit/[name.php].

All of the assertions from SimpleTest are available to use.

For an example, look at tests/unit/example.php in this package.

Naming Tip!

If you name your test method with underscores for spaces (like: test_Validates_Start_Is_Before_Or_Same_As_End) the HTML test reporter will convert those underscores into spaces, and lop off the "test" at the beginning (like: Validates Start Is Before Or Same As End)

2) Setup Config

Copy config/simpletest.php.example to application/config/simpletest.php and add the paths to your tests, grouping however you would like.

3) Run The Tests

To run the tests, you can either go to /simpletest/all in a browser, or run them from the command line:

php index.php --uri="/simpletest/all"

License

K3-SimpleTest is licensed under MIT.

SimpleTest (included in vendor/simpletest for your convenience) is licensed under the GPL

k3-simpletest's People

Contributors

jmhobbs avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.