PHPackages                             dracoblue/naith - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. dracoblue/naith

ActiveLibrary[Testing &amp; Quality](/categories/testing)

dracoblue/naith
===============

A simple php test runner, without the bloat of other frameworks.

1.1.1(12y ago)343.0k1MITPHPPHP &gt;=5.2.0

Since Jun 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/DracoBlue/naith)[ Packagist](https://packagist.org/packages/dracoblue/naith)[ RSS](/packages/dracoblue-naith/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

naith
=====

[](#naith)

- Version: 1.1.1
- Date: 2012/09/21
- Build Status: [![Build Status](https://camo.githubusercontent.com/2af3b32a940926232e54d655bfb9aeda37fa60f48107e8abf94dd4a765ca1ac8/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f447261636f426c75652f6e616974682e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/DracoBlue/naith), 100% Code Coverage

Naith is a small (~100 loc) php test runner and report generator (with code coverage) for the command line.

Usage
-----

[](#usage)

Executing `/path/to/naith_folder/naith run` in a directory, will execute all tests within `tests/`folder and requires the file `_before_test.php` (if it's available).

If you want to to run your tests as soon as a file changes, just type `/path/to/naith_folder/naith run-constant`.

Writing a test
--------------

[](#writing-a-test)

Just create a folder `tests` and create a file: `my_test.php` with the contents:

```
