Jump to content


Photo

Some setup feedbacks on Mac OS X 10.7.3 (setup screen and unit tests)


  • Please log in to reply
4 replies to this topic

#1 lucas.corbeaux

lucas.corbeaux

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationAngers - France

Posted 12 May 2012 - 01:15 PM

Hi there,

I took a little time a week ago for installing Zurmo on my Macbook Pro (Mac OS X 10.7.3), just to take a look and give a little feedback.

I followed the documentation here : http://zurmo.org/wik...-for-production

I found a bit annoying that in the configuration page, password fields were plain text instead of password inputs : I feel a bit… unsecure, and it's a really critical point in the choice of a CRM solution. Of course, the use of text inputs doesn't means that the application isn't secured, but it gives a bad image.

Everything else runs smoothly, and I found Zurmo a lot easier to install than long time stable CRM like SugarCRM or vTiger… it's a very good work :)

I also run the UnitTest, and it took me some times to find out how to run the test suite (first configure in /app/protected/configs/perInstanceTest.php, then run phpunit /app/protected/tests/unit/TestSuite.php) that should be a bit documented (I didn't find it easily on the website, so I try to discover it by myself).

As I encountered some failures (45) and errors (2), I joined a log file of what's happened. Maybe someone are configuration issues (I don't have memcached server, for instance, but I think that such configuration errors should be skipped).

Attached File  zurmo-tests.txt   31.75K   51 downloads

I don't try to fix them at all : it's just a quick try, out of the box, of a working and lightly configured Zurmo installation.

I hope this helps a bit, if needed I can give you more informations.
Keep up the good work :)

Lucas

#2 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 12 May 2012 - 01:25 PM

Thanks for the feedback. I entered a story here:
https://www.pivotalt...y/show/29498013
for the database password item you mentioned. We will need to improve our documentation on running tests. We do have a wiki article about it, but i guess unless you think to look there you are kind of stuck trying to figure it out on your own. We are thinking of adding a welcome page on first sign in that maybe offers up some ideas for what to do next for a developer.

Looking at your test results, it seems that you didn't have the second db configured for the tests and the configuration is probably wrong for running the API tests. This helps to give us some ideas of how to improve the testing experience for a developer. I appreciate the time you took to do this and welcome any additional feedback.

Jason Green
Zurmo Team
Need support? Upgrade now


#3 Ivica

Ivica

    Advanced Member

  • Moderators
  • 478 posts

Posted 14 May 2012 - 10:38 AM

Hi Lucas,
http://zurmo.org/wik...r-development-2
You need to setup points 12.4-12.6, and this should fix few test failures/errors.

About API, you need to open perInstanceTesp.php file and setup $testApiUrl, to point to app folder, so for example, on my development machine, I setup it to: 'http://zurmo.local/app'. This is important, because api functions are tested via http, so you must specify website url.

After you fix those two issues, I think all tests should pass :)

#4 lucas.corbeaux

lucas.corbeaux

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationAngers - France

Posted 26 May 2012 - 12:24 PM

Hi,

Many thanks for your reply, and sorry for the late response.

With your advices and wiki links, I reinstalled Zurmo from scratch from the public Mercurial repository and try to reconfigure it step by step.

I had to do some little things not detailed in the wiki :
* As you just told, API url configuration wasn’t done, maybe a little comment in the perInstanceTest.php could help.
* As I don’t have a memcache server, I emptied the $memcacheServers array.
* Even if $memcacheServers array is empty, we need to set $memcacheLevelCaching to false in app/protected/configs/debugTest.php

At this point, I still have 2 failures :

1) InstallUtilTest::testCheckMemcacheConnection
Failed asserting that Array (
0 => 61
1 => 'Connection refused'
) is true.

/zurmo/app/protected/modules/install/tests/unit/InstallUtilTest.php:454

2) InstallWalkthroughTest::testAllActions
Failed asserting that 1 matches expected 0.

/zurmo/app/protected/modules/install/tests/unit/walkthrough/InstallWalkthroughTest.php:176

Both test needs that a memcache server is reachable in localhost . I join a little patch that fix the issue, if you consider that the unit tests must run even if no memcache server available it could help a bit. With this patch, everything is fine :
Tests: 1165, Assertions: 25097, Skipped: 1 (the memcache connection test)
The patch (sorry for the .txt extension, but I'm not allowed to post .patch file), applies to the changeset 2514:51ed168e8b2f (not sure about it, I'm not really familiar with mercurial) : Attached File  zurmo-tests-memcache-off.patch.txt   2.88K   32 downloads

Here is some feedback to help improving developpers documentation :
* A very little typo in http://zurmo.org/wiki/windows-apache-installation-instructions-for-development-2 and http://zurmo.org/wiki/linux-installation-instructions-for-development : C:\xampp\htdocs\zurmo\yii\framwork\yii.php and \htdocs\zurmo\yii\framwork\yii.php : framwork is written instead of framework.
* In Linux installation instructions, about mercurial clone, a little word about the public repository should help, as I think many developpers reading this page doesn’t have a mercurial account for zurmo. I found the public repo url in the download page.
* A word about what to configure in perInstanceTest.php and debugTest.php might be really helpful, as there is no information about it in the installation wiki page.

Everything else seems fine, with a few hours spent (mostly spent waiting for the unit tests), I have a functionnal development environment :)

#5 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 26 May 2012 - 01:49 PM

Hi,

Many thanks for your reply, and sorry for the late response.

With your advices and wiki links, I reinstalled Zurmo from scratch from the public Mercurial repository and try to reconfigure it step by step.

I had to do some little things not detailed in the wiki :
* As you just told, API url configuration wasn’t done, maybe a little comment in the perInstanceTest.php could help.
* As I don’t have a memcache server, I emptied the $memcacheServers array.
* Even if $memcacheServers array is empty, we need to set $memcacheLevelCaching to false in app/protected/configs/debugTest.php

At this point, I still have 2 failures :

1) InstallUtilTest::testCheckMemcacheConnection
Failed asserting that Array (
0 => 61
1 => 'Connection refused'
) is true.

/zurmo/app/protected/modules/install/tests/unit/InstallUtilTest.php:454

2) InstallWalkthroughTest::testAllActions
Failed asserting that 1 matches expected 0.

/zurmo/app/protected/modules/install/tests/unit/walkthrough/InstallWalkthroughTest.php:176

Both test needs that a memcache server is reachable in localhost . I join a little patch that fix the issue, if you consider that the unit tests must run even if no memcache server available it could help a bit. With this patch, everything is fine :
Tests: 1165, Assertions: 25097, Skipped: 1 (the memcache connection test)
The patch (sorry for the .txt extension, but I'm not allowed to post .patch file), applies to the changeset 2514:51ed168e8b2f (not sure about it, I'm not really familiar with mercurial) : Attached File  zurmo-tests-memcache-off.patch.txt   2.88K   32 downloads

Here is some feedback to help improving developpers documentation :
* A very little typo in http://zurmo.org/wiki/windows-apache-installation-instructions-for-development-2 and http://zurmo.org/wiki/linux-installation-instructions-for-development : C:\xampp\htdocs\zurmo\yii\framwork\yii.php and \htdocs\zurmo\yii\framwork\yii.php : framwork is written instead of framework.
* In Linux installation instructions, about mercurial clone, a little word about the public repository should help, as I think many developpers reading this page doesn’t have a mercurial account for zurmo. I found the public repo url in the download page.
* A word about what to configure in perInstanceTest.php and debugTest.php might be really helpful, as there is no information about it in the installation wiki page.

Everything else seems fine, with a few hours spent (mostly spent waiting for the unit tests), I have a functionnal development environment :)

Thanks for the feedback. I will add a pivotal tracker story for some of the items you reported regarding documentation. Regarding the unit tests, thanks for the patch, we will get that applied.

here is the story link:
https://www.pivotalt...y/show/30245171

Jason Green
Zurmo Team
Need support? Upgrade now





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users