CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • Testing custom code
Pages: [1]

Author Topic: Testing custom code  (Read 4625 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Testing custom code
May 05, 2011, 02:56:53 pm
I want to set up some tests for some of my custom code - in this case the code runs off the POST & the Build form hook.

I'm trying to figure out whether I should try to build the code in a way in which the test suite will run my tests as well (which would mean I could run it against various versions easily but I don't know how I'd make it know to call my drupal modules' hooks.

Or, maybe I'm better going down the route of using the test module that is used with drupal  - then I could test directly against my database with my data? (but not easily against upcoming versions of civi)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • Testing custom code

This forum was archived on 2017-11-26.