Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Any plugin test driven development?

  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 10 months ago #185133 by tassoman
Any plugin test driven development? was created by tassoman
Hello there, I’m writing a plugin and I was wondering about the possibility to write tests in advance, before coding it for real.

I've found phpunit support inside core, there is tests/ directory and phpunit.xml file but running tests it warns about don't doing in a working site then hungs. (I'm running a github cloned copy ...)

Maybe I must delete application/config.php? So that LS would think being a fresh uninstalled version?

BTW, I've tried to create a tests/ directory inside my plugin, then adding a test class, extending ls\tests\TestBaseClass is it correct?

Am I missing something else? Any help is appreciated! :)

Thanks in advance!

«All your survey answers are belong to us »
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose