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) »
  • How to make the error messages from the test useful ?
Pages: [1]

Author Topic: How to make the error messages from the test useful ?  (Read 1929 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
How to make the error messages from the test useful ?
February 03, 2011, 09:14:26 am
Hi,

running scripts/phpunit --tap -uroot -p5133 -h localhost api_v3_NoteTest
We get (after the mandatory half an hour database init thing):
  "Undefined index: values" msg on api_v3_NoteTest

Is there any way of knowing where it comes from, like a line instead of a file or something ?

Obviously, the code works when testing from civicrm/ajax/doc.

Help the code sprint, we are stuck and therefore forced to leave and have a beer. Poor us, it isn't even going to be a warm one

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: How to make the error messages from the test useful ?
February 03, 2011, 01:39:42 pm
Hey - Have you guys checked in ? I could find this out for you because my set up (I guess the xdebug) is very informative about these things
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

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: How to make the error messages from the test useful ?
February 04, 2011, 03:38:03 am
Yeah, install xdebug - you'll get more info than you want. :-)

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to make the error messages from the test useful ?
February 04, 2011, 03:48:14 am
For the record: you need to have ~E_STRICT otherwise the tests error/fails.

Michau, I think it it should be added in the config file somewhere (on two of our machines on the code sprint it wasn't properly set)

error_reporting (E_ALL);
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: How to make the error messages from the test useful ?
February 04, 2011, 04:13:01 am
Added on trunk in rev32229.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • How to make the error messages from the test useful ?

This forum was archived on 2017-11-26.