Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Re: functional tests

Subject: COmanage Developers List

List archive

[comanage-dev] Re: functional tests


Chronological Thread 
  • From: Arlen Johnson <>
  • To:
  • Subject: [comanage-dev] Re: functional tests
  • Date: Tue, 07 Jul 2015 23:24:35 -0400

More on this:

CakePHP 3 has an "official" Codeception module:
https://github.com/cakephp/codeception

Cake 2, not so much.  There's a "cakeception" module for Cake 2, but it doesn't do much more than the unit tests we're already ok with.

And this is what the Cake2 docs state in the testing section:

------
Testing Views
Generally most applications will not directly test their HTML code. Doing so is often results in fragile, difficult to maintain test suites that are prone to breaking. When writing functional tests using ControllerTestCase you can inspect the rendered view content by setting the return option to ‘view’. While it is possible to test view content using ControllerTestCase, more robust and maintainable integration/view testing can be accomplished using tools like Selenium webdriver.
------

I'll look a little more, but will probably push ahead with some basic Selenium IDE stuff and go from there.

Arlen


On 7/6/15 11:51 PM, Arlen Johnson wrote:
Looking hard at http://codeception.com/ for functional testing.

Some highlights:
  • PHP based (Selenium web driver has third-party PHP bindings, but the core project supports mostly Java, C#, Ruby, and Python)
  • integrates well with Selenium (as needed)
  • MIT licensed, were we inclined to bundle it

Arlen





Archive powered by MHonArc 2.6.16.

Top of Page