[ask] Test-Driven Development (TDD) in SuiteCRM

Hi,

Could we perform TDD test in SuiteCRM? or, how we add PHPUnit for unit testing in SuiteCRM?
How to do it? Could you tell me about this?

I have searched it but all references tell us that it just possible for SugarCRM version 7 while SuiteCRM is forked from SugarCRM version 6.5.
FYI, the version SuiteCRM that we want to customized is 7.8.5.

Thanks.

SuiteCRM is already using PHPUnit test, you can see that on GitHub. These were introduced recently. Coverage is still quite limited, though.

Thanks for the info, pgr.
I have download the code related to tests.
But, when I execute phpunit, it shows error message:
PHP Fatal error: Class ‘PHPUnit_Framework_TestCase’ not found in /var/www/html/tests/tests/modules/Accounts/AccountTest.php on line 4

Could you tell me how to fix this problem?

Thanks in advance.

Please follow the Docs:

https://docs.suitecrm.com/developer/appendix-c---automated-testing/

I am not too familiar with automated tests (yet), but I hope that is enough to get you going.

1 Like