Development

LimeTestingFramework (diff)

You must first sign up to be able to contribute.

Changes between Version 8 and Version 9 of LimeTestingFramework

Show
Ignore:
Author:
Benjamin.Meynell (IP: 65.34.66.25)
Timestamp:
01/26/07 06:04:11 (11 years ago)
Comment:

changed intro

Legend:

Unmodified
Added
Removed
Modified
  • LimeTestingFramework

    v8 v9  
    33== Overview == 
    44 
    5 This page is to serve as a source of information and examples pertaining to the new Lime testing framework for use before the official documentation is released.  
     5On January 17, 2006 a sample chapter from the upcoming book ''The Definitive Guide to Symfony'' was posted to the [http://www.symfony-project.com/weblog/2007/01/17/book-preview-read-the-unit-tests-chapter.html official symfony blog] ([http://www.symfony-project.com/uploads/assets/The_Definitive_Guide_to_Symfony_Chapter_15.pdf direct link] to pdf). 
    66 
    7 Lime is ''not'' [http://www.lastcraft.com/simple_test.php SimpleTest] nor are the two intertwined in any way. !SimpleTest is an external software package that ''used to be'' the recommended way to unit test a Symfony application (as described [http://www.symfony-project.com/book/trunk/test_unit_testing here]). Lime has replaced !SimpleTest as the ''recommended'' and ''officially supported'' unit and functional testing framework (see [http://www.symfony-project.com/weblog/2006/09/19/new-testing-framework.html New testing framework] announcement). You can ''still'' use !SimpleTest if you prefer but it won't be integrated into Symfony like Lime is (and thus, will probably be much less useful).  
     7This page is to serve as a source of additional information, documentation, tips, tricks, and examples pertaining to the new Lime testing framework that are not present in the book.  
    88 
    9 == Official Documentation Available == 
     9== Cheat Sheet == 
    1010 
    11 On January 17, 2006 a sample chapter from the upcoming book ''The Definitive Guide to Symfony'' was posted to the [http://www.symfony-project.com/weblog/2007/01/17/book-preview-read-the-unit-tests-chapter.html official symfony blog] ([http://www.symfony-project.com/uploads/assets/The_Definitive_Guide_to_Symfony_Chapter_15.pdf direct link] to pdf).  This supersedes the rest of this page. 
    12  
    13 == Lime Basics == 
    14  
    15 Lime works on both Windows and Linux but utilizes colored output in Linux which is much easier to read.  
    16  
    17 Whenever you create a new module using the ''symfony init-module'' command, a ''modulenameActionsTest.php'' file is created in test/functional/yourapp 
    18  
    19 '''To test your project and retrieve summary information''' 
    20  
    21 {{{ 
    22 symfony test-functional frontend 
    23 }}} 
    24  
    25 '''To test a specific file (assumes you have a file, test/functional/frontend/userActionsTest.php)''' 
    26  
    27 {{{ 
    28 symfony test-functional frontend userActions 
    29 }}} 
    30  
    31 '''To test any other file (including functional tests)''' 
    32  
    33 {{{ 
    34 php test/unit/class/myCustomClassTest.php 
    35 }}} 
    36  
    37 '''Other relevant commands''' 
    38  
    39 {{{ 
    40 symfony test-unit 
    41 }}} 
    42  
    43 {{{ 
    44 symfony test-all 
    45 }}} 
     11See downloadable lime cheat sheet at the bottom of this page. 
    4612 
    4713== Available Methods ==