Skip to content

joetsuihk/codeigniter-simpletest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter with SimpleTest

This has been adopted from: jamieonsoftware

With help from: John S. - http://github.com/juven14

Design From: Istvan Pusztai - http://codeigniter.com/forums/viewthread/129253/P10/#697201

Installation

The unit_test.php file should go in your CodeIgniter root. The same place as index.php

You should open that file and alter your paths at the top.

The tests directory can be moved any where you want but they are setup to be in the root as well.

All test files need to be named test_name_folder.php. For example:

test_whatever_bug.php
test_string_helper.php
test_auth_library.php
test_core_model.php

I have included a full download of simpletest and the only customization I have made is to the simpletest/extensions/my_reporter.php

NOTES:

Inside the "tests" directory I include two example test files. The test_users_model.php will not run on its own because your application would not include the same users model as the example file. It is supplied just as an example.

Screenshots

Passed Test

Passed Test

Failed Test

Failed Test

Credits

About

Simpletest Integration for CodeIgniter

Resources

License

Stars

Watchers

Forks

Packages

No packages published