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) »
  • bool (true) is the result of the test
Pages: [1]

Author Topic: bool (true) is the result of the test  (Read 2275 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
bool (true) is the result of the test
January 16, 2011, 01:09:45 am
running
scripts/phpunit -u db_username -pdb_password -h localhost AllTests

I get :
bool(true)


Anyone having a clue before I dig deep into the guts of the beast ?

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: bool (true) is the result of the test
January 16, 2011, 11:07:31 am
Hi Xavier - that's how it starts & normally after a small delay it continues.

Start with a smaller set of tests eg

scripts/phpunit -u test -ptest -h localhost api/v3/ActivityContactTest

(username & password are test in this line)
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: bool (true) is the result of the test
January 17, 2011, 11:18:44 am
It comes out from somewhere, but doesn't break anything, so I kind of ignored it for a long time. :-) I would skip trying to fix it for now, it actually quite optimistic to get true for the starters. :-)

If that's everything you're getting though, that means that the suite is doing silent failure. Try running with --tap parameter for the starters:

scripts/phpunit --tap -u db_username -pdb_password -h localhost AllTests

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!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: bool (true) is the result of the test
January 17, 2011, 11:23:05 am
TAP version 13
bool(true)


It doesn't matter what login/pwd I put. I'm in a multisite and civi isn't under the drupal root (symlink). Will dig further.

X+
-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: bool (true) is the result of the test
January 18, 2011, 04:51:58 am
Ok, that means silent failure. You might want to try running api_vX_Domain alone - if it fails, means it's most probably exiting somewhere in CiviUnitTestCase.

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!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: bool (true) is the result of the test
February 04, 2011, 04:07:23 am
I have no f**king idea why yesterday it was running (well, took for ever, cf db reinit, but was doing something), and today, that doesn't do anything beside silently failing.

</vent>

Right now, I'm focussing on civicrm/ajax/doc, so at least I can move forward. Any help more than welcome.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Unit Testing (Moderator: Michał Mach) »
  • bool (true) is the result of the test

This forum was archived on 2017-11-26.