Ticket #380 (assigned task)

Opened 23 months ago

Last modified 4 weeks ago

Implement an infrastructure for funtional and unit testing of applications (and Agavi itself)

Reported by: david Owned by: felix
Priority: highest Milestone: 1.0
Component: unittest Version:
Severity: blocker Keywords:
Cc: Patch attached: no

Description

see #308 and #330

Attachments

Change History

Changed 11 months ago by david

  • priority changed from normal to highest
  • severity changed from normal to blocker

Changed 11 months ago by david

  • summary changed from Implement an infrastructure for funtional and unit testing of applications to Implement an infrastructure for funtional and unit testing of applications (and Agavi itself)

Changed 3 months ago by felix

(In [2688]) pinned the phpunit version to r3500 due to a bug introduced in r3502, refs #380

Changed 3 months ago by felix

  • owner changed from david to felix
  • has_patch unset

Changed 3 months ago by felix

(In [2691]) made the base test classes abstract, so that they do not get included in the list of tests to run, refs #380

Changed 3 months ago by felix

(In [2692]) fixed the base interface name, refs #380

Changed 3 months ago by felix

(In [2695]) sets the agavi app dir for the testing env, refs #380?\226?\128?\168

Changed 3 months ago by felix

(In [2696]) bootstrap an agavi installation for each test in a separate method, refs #380

Changed 3 months ago by felix

(In [2697]) updates the template to contain fixes made in the phpunit template it was copied from, refs #380

Changed 3 months ago by felix

(In [2699]) removes the bootstrap for the agavi installation, this is done in the template used to call the job. refs #380

Changed 3 months ago by felix

(In [2701]) bootstrap a full agavi framework to run the tests in, refs #380?\226?\128?\168

Changed 3 months ago by felix

(In [2703]) added first unit test for the sample app, POC code only

  • Test name is hardcoded in the AgaviTesting?.php
  • requires a hacked PHPUnit version of an deleted branch :(
  • requires putting the base class in the main autoload not in the module autoload as it should be

refs #380

Changed 3 months ago by felix

  • status changed from new to assigned
  • component changed from _OTHER_ to unittest

Changed 2 months ago by david

(In [2913]) tests for sample app, they work again now after [2904] which merged [2903] (and [2912] / [2911]). this is good fun. refs #859, #861 and #380

Changed 2 months ago by felix

(In [2914]) Merged revisions 2904,2906,2909,2912-2913 via svnmerge from http://svn.agavi.org/branches/1.0

........

r2904 | david | 2008-09-19 18:57:48 +0200 (Fri, 19 Sep 2008) | 1 line

merge [2876:2903/branches/0.11]

........

r2906 | david | 2008-09-19 19:22:09 +0200 (Fri, 19 Sep 2008) | 1 line

merge [2904:2905/branches/0.11]

........

r2909 | david | 2008-09-19 19:51:53 +0200 (Fri, 19 Sep 2008) | 1 line

make AgaviTesting::dispatch() static

........

r2912 | david | 2008-09-19 20:49:42 +0200 (Fri, 19 Sep 2008) | 1 line

merge [2906:2911/branches/0.11]

........

r2913 | david | 2008-09-19 21:16:47 +0200 (Fri, 19 Sep 2008) | 1 line

tests for sample app, they work again now after [2904] which merged [2903] (and [2912] / [2911]). this is good fun. refs #859, #861 and #380

........

Changed 4 weeks ago by felix

(In [3074]) - merges the latest changes from branches/felix-testing-implementation - adds support for per-testcase environments - adds support for code coverage via command line params - refs #380

Changed 4 weeks ago by felix

(In [3091]) merges the changes from branches/felix-testing-implementation, r3087 - r3090

  • adds support for specifying the testing env on the commandline
  • adds some code cleanup

refs #380

Changed 4 weeks ago by david

(In [3095]) renamed runtests.php to run-tests.php, refs #380

Changed 4 weeks ago by felix

(In [3101]) Blocked revisions 3091 via svnmerge, this is the backmerge from branches/felix-testing-implementation to branches/1.0

........

r3091 | felix | 2008-10-20 19:47:00 +0200 (Mon, 20 Oct 2008) | 7 lines

merges the changes from branches/felix-testing-implementation, r3087 - r3090

  • adds support for specifying the testing env on the commandline
  • adds some code cleanup

refs #380

........

Changed 4 weeks ago by felix

(In [3102]) Merged revisions 3093,3095-3097 via svnmerge from http://svn.agavi.org/branches/1.0

........

r3093 | david | 2008-10-20 20:17:58 +0200 (Mon, 20 Oct 2008) | 1 line

merge [3077:3091/branches/0.11]

........

r3095 | david | 2008-10-20 20:25:17 +0200 (Mon, 20 Oct 2008) | 1 line

renamed runtests.php to run-tests.php, refs #380

........

r3096 | david | 2008-10-20 20:30:42 +0200 (Mon, 20 Oct 2008) | 1 line

1.0.0 beta 5 release info

........

r3097 | david | 2008-10-20 20:41:54 +0200 (Mon, 20 Oct 2008) | 1 line

removed var_dump() calls left over for debugging purposes, refs #876

........

Changed 4 weeks ago by felix

(In [3192]) Added Testcases for Tickets #464, #437, #713

- refs #464 #437 #713, #308, #380

Changed 4 weeks ago by felix

(In [3194]) Merges the changes from branches/felix-testing-implementation, r3091 - r3192

- adds the infrastructure for testing the framework itself - adds the first couple of TestCases?, mainly for the Routing

refs #380, #308

Changed 4 weeks ago by felix

(In [3195]) Blocked revisions 3194 via svnmerge, it's the backmerge from this branch to 1.0

........

r3194 | felix | 2008-10-26 14:53:47 +0100 (Sun, 26 Oct 2008) | 8 lines

Merges the changes from branches/felix-testing-implementation, r3091 - r3192

  • adds the infrastructure for testing the framework itself
  • adds the first couple of TestCases?, mainly for the Routing

refs #380, #308

........

Changed 4 weeks ago by felix

(In [3223]) Merged revisions 3124-3125,3138-3140,3145,3149,3151-3152,3165-3166,3168,3171-3172,3187-3190,3194,3200,3202,3205,3207,3213,3218 via svnmerge from http://svn.agavi.org/branches/1.0

........

r3124 | david | 2008-10-23 18:53:43 +0200 (Thu, 23 Oct 2008) | 1 line

-dev version info

........

r3125 | david | 2008-10-23 18:54:44 +0200 (Thu, 23 Oct 2008) | 1 line

merge [3092:3124/branches/0.11]

........

r3138 | impl | 2008-10-24 14:17:35 +0200 (Fri, 24 Oct 2008) | 1 line

Update naming for RNG datatypes, refs #519, #462

........

r3139 | impl | 2008-10-24 14:19:03 +0200 (Fri, 24 Oct 2008) | 1 line

Fix minor issues in XSL transformations, refs #519, #462

........

r3140 | impl | 2008-10-24 14:21:38 +0200 (Fri, 24 Oct 2008) | 1 line

Convert autoload.xml to 1.0 configuration format, refs #519, #462

........

r3145 | impl | 2008-10-24 14:28:31 +0200 (Fri, 24 Oct 2008) | 1 line

Fix typo and update unit tests

........

r3149 | impl | 2008-10-24 16:22:00 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #891: Build system output is unreadable in Windows PowerShell?

........

r3151 | impl | 2008-10-24 16:24:24 +0200 (Fri, 24 Oct 2008) | 1 line

Remove stupid message that makes output ugly

........

r3152 | impl | 2008-10-24 17:10:41 +0200 (Fri, 24 Oct 2008) | 1 line

Support commas as well as spaces in project configuration system input lists

........

r3165 | impl | 2008-10-24 22:57:54 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #894: Regression: XIncludes in sandbox-tags result in PHP segfaults

........

r3166 | david | 2008-10-24 23:03:29 +0200 (Fri, 24 Oct 2008) | 1 line

fixed changelog entry, my bad, refs #894

........

r3168 | impl | 2008-10-24 23:53:56 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #895: Regression: xml:base attributes left behind by XIncludes cause config validations to fail; fix comment formatting LOL DONGS

........

r3171 | david | 2008-10-25 14:31:36 +0200 (Sat, 25 Oct 2008) | 1 line

merge [3125:3170/branches/0.11]

........

r3172 | david | 2008-10-25 14:44:04 +0200 (Sat, 25 Oct 2008) | 1 line

converted build templates and sample app autoload.xml files to 1.0 configuration format, forgotten in [3140], refs #519

........

r3187 | impl | 2008-10-25 23:47:00 +0200 (Sat, 25 Oct 2008) | 1 line

If the templates directory is the Agavi templates directory when the project configuration system creates a new project, then use a variable reference to it instead of a hardcoded path (thanks Felix, Dominik)

........

r3188 | impl | 2008-10-26 01:29:06 +0200 (Sun, 26 Oct 2008) | 1 line

Update databases.xml to use 1.0-style handlers, refs #519, #462

........

r3189 | david | 2008-10-26 12:30:05 +0100 (Sun, 26 Oct 2008) | 1 line

ported sample and code tpl databases.xml files to new format, forgotten in [3188], refs #519

........

r3190 | felix | 2008-10-26 12:51:09 +0100 (Sun, 26 Oct 2008) | 3 lines

disabling modules works again and displays the disabled page instead of throwing an exception

........

r3194 | felix | 2008-10-26 14:53:47 +0100 (Sun, 26 Oct 2008) | 8 lines

Merges the changes from branches/felix-testing-implementation, r3091 - r3192

  • adds the infrastructure for testing the framework itself
  • adds the first couple of TestCases?, mainly for the Routing

refs #380, #308

........

r3200 | impl | 2008-10-26 18:56:21 +0100 (Sun, 26 Oct 2008) | 1 line

Update routing.xml config handler to 1.0 format

........

r3202 | impl | 2008-10-26 19:06:38 +0100 (Sun, 26 Oct 2008) | 1 line

Fix hasChildren -> has checks in AgaviRoutingConfigHandler?

........

r3205 | felix | 2008-10-26 19:23:05 +0100 (Sun, 26 Oct 2008) | 9 lines

Merge from branches/felix-testing-implementation/ r3194 - r3204

  • More Tests for the routing
  • checks #444, #609
  • checks generation of the shortest possible url - this feature is currently broken

........

r3207 | impl | 2008-10-26 19:33:20 +0100 (Sun, 26 Oct 2008) | 1 line

Update routing.xml template and sample app

........

r3213 | david | 2008-10-26 20:46:57 +0100 (Sun, 26 Oct 2008) | 1 line

date fix

........

r3218 | felix | 2008-10-26 21:16:28 +0100 (Sun, 26 Oct 2008) | 3 lines

Merge from branches/felix-testing-implementation/ r3204 - r3216

........

Add/Change #380 (Implement an infrastructure for funtional and unit testing of applications (and Agavi itself))

Author



Action
as assigned
 
Note: See TracTickets for help on using tickets.