Google Groups Home
Help | Sign in
plugin development - automated testing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
klemens_u  
View profile  
 More options Aug 7 2008, 7:41 am
From: klemens_u <klem...@ull.at>
Date: Thu, 7 Aug 2008 04:41:01 -0700 (PDT)
Local: Thurs, Aug 7 2008 7:41 am
Subject: plugin development - automated testing
Hi,

My original idea was to package tests for plugins with the plugin
itself like

plugins/myPlugin/test/
        unit/myPlugintest.php
        functional/myPlugintest.php

But it seems, that "symfony test:..." doesn't recognise tests in the
folders mentioned above.

What's your best-practice and experience developing plugins and
writing unit und functional tests for them?

Kind regards,
Klemens


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Vondrick  
View profile  
 More options Aug 7 2008, 11:32 am
From: Carl Vondrick <carl.vondr...@symfony-project.com>
Date: Thu, 7 Aug 2008 08:32:41 -0700 (PDT)
Local: Thurs, Aug 7 2008 11:32 am
Subject: Re: plugin development - automated testing
I normally execute the tests by hand.  It's the same thing as if you
used the test:* tasks.

$ php plugins/myPluginTest/unit/myPluginTest.php

You can add prove and coverage scripts as well:

$ php plugins/myPluginTest/test/bin/prove.php
$ php plugins/myPluginTest/test/bin/coverage.php

Carl

On Aug 7, 4:41 am, klemens_u <klem...@ull.at> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernhard Schussek  
View profile  
(1 user)  More options Aug 8 2008, 9:39 am
From: "Bernhard Schussek" <bschus...@gmail.com>
Date: Fri, 8 Aug 2008 15:39:05 +0200
Local: Fri, Aug 8 2008 9:39 am
Subject: Re: [symfony-devs] Re: plugin development - automated testing
Well, it's not exactly the same. I'm interested in this topic as well,
as I would just like to run symfony test:all when I develop a plugin
which displays a list of 'ok's and 'not ok's. Otherwise I have to
manually run all 'php ...' commands every time I want to test the
whole suite.

A different thing that isn't really supported very well is functional
testing of plugins using 'fixture projects'. It's done like that in
the symfony project, where inside the /test/functional/... directories
reside projects just for the purpose of one functional test. Is this
possible to do as well during plugin development?

Again, I just would like to run 'symfony test:functional' in this case.

Kind regards,
Bernhard

On Thu, Aug 7, 2008 at 5:32 PM, Carl Vondrick


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dennis Benkert  
View profile  
 More options Aug 8 2008, 11:45 am
From: Dennis Benkert <spinecras...@googlemail.com>
Date: Fri, 8 Aug 2008 08:45:50 -0700 (PDT)
Local: Fri, Aug 8 2008 11:45 am
Subject: Re: plugin development - automated testing

> Well, it's not exactly the same. I'm interested in this topic as well,
> as I would just like to run symfony test:all when I develop a plugin
> which displays a list of 'ok's and 'not ok's. Otherwise I have to
> manually run all 'php ...' commands every time I want to test the
> whole suite.

+1 for this. It makes plugin testing much easier and gives you a
consistent behavior when testing plugins, your app, etc.

On 8 Aug., 15:39, "Bernhard Schussek" <bschus...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kris Wallsmith  
View profile  
 More options Aug 8 2008, 11:48 am
From: Kris Wallsmith <kris.wallsm...@gmail.com>
Date: Fri, 8 Aug 2008 08:48:11 -0700
Local: Fri, Aug 8 2008 11:48 am
Subject: Re: [symfony-devs] Re: plugin development - automated testing
This would be easy enough to implement in a plugin if sfBaseTask  
didn't override the events dispatched in sfTask... Is there any chance  
of restoring those events for symfony core events?

Kris

On Aug 8, 2008, at 6:39 AM, Bernhard Schussek wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
klemens_u  
View profile  
 More options Aug 8 2008, 2:34 pm
From: klemens_u <klem...@ull.at>
Date: Fri, 8 Aug 2008 11:34:01 -0700 (PDT)
Local: Fri, Aug 8 2008 2:34 pm
Subject: Re: plugin development - automated testing
> A different thing that isn't really supported very well is functional
> testing of plugins using 'fixture projects'. It's done like that in
> the symfony project, where inside the /test/functional/... directories
> reside projects just for the purpose of one functional test. Is this
> possible to do as well during plugin development?

can you explain this a bit more? in particular what do you mean by
"fixture projects"?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nykacho  
View profile  
 More options Aug 11 2008, 7:48 am
From: nykacho <email.de.nicolas.mar...@gmail.com>
Date: Mon, 11 Aug 2008 04:48:57 -0700 (PDT)
Local: Mon, Aug 11 2008 7:48 am
Subject: Re: plugin development - automated testing
Take a look at the sfPropel plugin on the symfony library.

sfPropel/test/functional/fixtures contains a whole symfony project
structure, which have a schema.xml and several modules. This is a
fixture project that will be used during the plugins functional tests.

The functional bootstrap script build models and initialize a
temporary sqlite database for this project.
This job is done in this 'fixture' project's config file. (sfPropel/
test/unit/fixtures/config/ProjectConfiguration.class.php)

All the tests are then executed in a full project-wide context, with
real objects on a real db.

I tried to use the system mechanism on my own plugins, but I
experienced some conflits beetween the real project and the plugins's
fixtures one, when I use the symfony tasks.
I think this technique have to be sharpened for it to be promoted
outside the symfony core.

On 8 août, 20:34, klemens_u <klem...@ull.at> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google