# Automated test suite?

**URL:** <https://community.open-emr.org/t/automated-test-suite/5381>\
**Category:** OpenEMR Development\
**Created:** [March 28, 2014, 7:52pm UTC](https://community.open-emr.org/t/automated-test-suite/5381 "2014-03-28T19:52:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [March 28, 2014, 7:52pm UTC](https://community.open-emr.org/t/automated-test-suite/5381/1 "2014-03-28T19:52:58Z")

</div>

**[iankarlwallace](https://sourceforge.net/u/iankarlwallace/)** wrote on [Friday, March 28, 2014](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/#0a02):

Hoowdy! I see that in the past OpenEMR had an automated PHPUnit test suite that was used up until about April of 2012 (at least that’s what it appears like from the Wiki page here - [http://www.open-emr.org/wiki/index.php/Automated\_Testing](http://www.open-emr.org/wiki/index.php/Automated_Testing)). I am just wondering if the project started using a different testing method or if currently we don’t really have one. Thanks for any info people can share on this.

cheers  
ian

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [March 29, 2014, 5:09am UTC](https://community.open-emr.org/t/automated-test-suite/5381/2 "2014-03-29T05:09:35Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Saturday, March 29, 2014](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/#b4ea):

Hi,  
The project doesn’t really have one. But we are open to anybody that wants to work on one. Currently have those test scripts you mentioned above in the Tests directory.  
-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [March 29, 2014, 6:52am UTC](https://community.open-emr.org/t/automated-test-suite/5381/3 "2014-03-29T06:52:09Z")

</div>

**[iankarlwallace](https://sourceforge.net/u/iankarlwallace/)** wrote on [Saturday, March 29, 2014](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/#b4ea/fc55):

Brady - Thanks for the reply. Will start looking into it. In my day job I  
am a Family Physician but I used to be (for about 9+ years) a software  
developer who worked exclusively on web based systems.

cheers  
ian

On Fri, Mar 28, 2014 at 11:09 PM, Brady Miller [bradymiller@users.sf.net](mailto:bradymiller@users.sf.net)wrote:

> ## Hi, The project doesn’t really have one. But we are to anybody that wants to work on one. Currently also have those test scripts you mentioned above in the Tests directory. -brady OpenEMR [http://www.open-emr.org/](http://www.open-emr.org/)
> 
> ## Automated test suite?[https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/?limit=25#b4ea](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/?limit=25#b4ea)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [OpenEMR / Discussion / Developers](https://sourceforge.net/p/openemr/discussion/202506/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)

–  
Ian Wallace - Advanced Procedures Fellow - Salud Family Health Center (c)  
303.681.5732

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 3, 2014, 2:59pm UTC](https://community.open-emr.org/t/automated-test-suite/5381/4 "2014-04-03T14:59:04Z")

</div>

**[iankarlwallace](https://sourceforge.net/u/iankarlwallace/)** wrote on [Thursday, April 03, 2014](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/#b4ea/fc55/d761):

In looking to revive this it’s a bit more complicated than first  
anticipated and I wanted some input:

1. Since the current small number of tests has been dormant for over 2  
years I will most likely remove what we have and start from scratch. Seems  
easier that way since the Installer testing class alone is causing quite a  
problem in getting to work correctly. Any objections?

2. In terms of dependencies (i.e. requiring PHPUnit) I currently develop on  
Unbuntu and there is a system package that will install PHPUnit. Do you  
recommend that we actually grab a particular version of the library and  
place in the code set, or is it ok for me to just use the current version  
on Unbuntu? My preference is to include as little dependencies as possible  
in the git hub repo. Keeps the code smaller.

3. In terms of longer term development is the project headed towards using  
a more ‘composer’-esque method to dependency control? I aks only in  
reference to the whole ‘bootstraping’ aspect for libraries … it’s nicely  
handled using composer setups but in our current code base it looks a bit  
convoluted (maybe I just don’t understand it yet …).

More later. I was able to get a small set of tests working with code  
coverage reports but then I broke the entire system (installer and all) and  
it was easier to just start from scratch.

cheers  
ian

On Sat, Mar 29, 2014 at 12:52 AM, iankarlwallace \<  
[iankarlwallace@users.sf.net](mailto:iankarlwallace@users.sf.net)\> wrote:

> Brady - Thanks for the reply. Will start looking into it. In my day job I  
> am a Family Physician but I used to be (for about 9+ years) a software  
> developer who worked exclusively on web based systems.
> 
> cheers  
> ian
> 
> On Fri, Mar 28, 2014 at 11:09 PM, Brady Miller [bradymiller@users.sf.net](mailto:bradymiller@users.sf.net)  
> wrote:
> 
> Hi,
> 
> The project doesn’t really have one. But we are to anybody that wants to  
> work on one. Currently also have those test scripts you mentioned above in  
> the Tests directory.  
> -brady  
> OpenEMR [http://www.open-emr.org/](http://www.open-emr.org/)
> 
> * * *
> 
> Automated test suite?  
> [OpenEMR / Discussion / Developers: Automated test suite?](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/?limit=25#b4ea)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [OpenEMR / Discussion / Developers](https://sourceforge.net/p/openemr/discussion/202506/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)
> 
> –  
> Ian Wallace - Advanced Procedures Fellow - Salud Family Health Center (c)  
> 303.681.5732
> 
> * * *
> 
> ## Automated test suite?[http://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/?limit=25#b4ea/fc55](http://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/?limit=25#b4ea/fc55)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [OpenEMR / Discussion / Developers](https://sourceforge.net/p/openemr/discussion/202506/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)

–  
Ian Wallace - Advanced Procedures Fellow - Salud Family Health Center (c)  
303.681.5732

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 4, 2014, 7:16am UTC](https://community.open-emr.org/t/automated-test-suite/5381/5 "2014-04-04T07:16:14Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Friday, April 04, 2014](https://sourceforge.net/p/openemr/discussion/202506/thread/35dd299b/#e49e):

Hi,

Very nice to see this started up again.

Bit of history regarding installer class, I think there is likely a scope issue somewhere that is breaking that for phpunit. The author whom created the phpunit testing actually even built that very nice installer class to allow the phpunit testing. But then it broke at some point. If you restart from scratch won’t you still want to test the installation steps? Rather than throw things out can you leave them there, but not use them for now in your testing? Or does the existence of them break things?

Agree not to include phpunit in OpenEMR. Makes sense to keep the testing scripts (as is now there) in the codebase, but agree not to include the phpunit library itself. Ideally, as was done before, somebody will set up a server that runs builds of OpenEMR automatically via phpunit.

You are not incorrect in seeing codebase as rather convoluted.

-brady  
[OpenEMR](http://www.open-emr.org/)
