<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Test Framework for Mango]]></title><description><![CDATA[<p dir="auto">Is there an existing framework for testing the mango core and/or modules?  I have pulled the most recent code from the public git repo but didn't find any test code.  I am wondering because our company has developed a module and would like to automate some of the testing for it and the future modules we will create.</p>
]]></description><link>https://forum.mango-os.com/topic/1295/test-framework-for-mango</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 03:36:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1295.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Mar 2013 02:16:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Test Framework for Mango on Tue, 19 Jul 2016 15:47:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Sasa,</p>
<p dir="auto">For the core I believe that's all.</p>
]]></description><link>https://forum.mango-os.com/post/12095</link><guid isPermaLink="true">https://forum.mango-os.com/post/12095</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 19 Jul 2016 15:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Tue, 19 Jul 2016 09:51:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi together,</p>
<p dir="auto">in the current ma-core-public (2.7.12) I found packages under "src-test" and "src-unit" in CORE.<br />
For my view: are there other places of test logic?</p>
<p dir="auto">Thanks!<br />
Sasa</p>
]]></description><link>https://forum.mango-os.com/post/12091</link><guid isPermaLink="true">https://forum.mango-os.com/post/12091</guid><dc:creator><![CDATA[sasa]]></dc:creator><pubDate>Tue, 19 Jul 2016 09:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Wed, 10 Sep 2014 17:08:32 GMT]]></title><description><![CDATA[<p dir="auto">terrypacker,</p>
<p dir="auto">excuse me for the delay. It was a busy time the last few weeks and I am now evaluating internally whether we are at the same stage we were when I first posted here...</p>
<p dir="auto">Thanks for the link, I will be watching this branch.</p>
]]></description><link>https://forum.mango-os.com/post/9218</link><guid isPermaLink="true">https://forum.mango-os.com/post/9218</guid><dc:creator><![CDATA[fleimgruber]]></dc:creator><pubDate>Wed, 10 Sep 2014 17:08:32 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Sat, 26 Jul 2014 22:56:22 GMT]]></title><description><![CDATA[<p dir="auto">fleimgruber,</p>
<p dir="auto">I've just committed our first round of tests for the new REST framework.  It uses Spring 4 so it might be a little too advanced for the original M2M framework but it will give you an idea of how testing is going to work with M2M2.  This code can be found in the development branch of the core-public git project, the link is <a href="https://github.com/infiniteautomation/ma-core-public/tree/development/Core/src-test/com/serotonin/m2m2" rel="nofollow ugc">https://github.com/infiniteautomation/ma-core-public/tree/development/Core/src-test/com/serotonin/m2m2</a></p>
<p dir="auto">This is work in progress so it will be evolving over the coming weeks.</p>
<p dir="auto">Terry</p>
]]></description><link>https://forum.mango-os.com/post/8831</link><guid isPermaLink="true">https://forum.mango-os.com/post/8831</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Sat, 26 Jul 2014 22:56:22 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Sat, 14 Jun 2014 05:49:27 GMT]]></title><description><![CDATA[<p dir="auto">I am familiar with the M2M code, Mango contains most if not all of the M2M code, we moved a large portion of code out into modules.  The web layer is probably the most divergent while the VO RT and DAO layers are probably still fairly consistent in terms of method signatures.</p>
<p dir="auto">I still think it is worth considering working together because there will be a decent amount of overlap.  For example, when testing a DataSource Mango still has most of the M2M methods with the addition of some new ones.  It shouldn't be too much of a stretch to think we could build a Test library that when linked to M2M or Mango would work.</p>
<p dir="auto">I'll spend some time thinking of what this common interface would be while you are on holidays.  Let me know when you get back.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/post/8694</link><guid isPermaLink="true">https://forum.mango-os.com/post/8694</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Sat, 14 Jun 2014 05:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Fri, 13 Jun 2014 13:30:29 GMT]]></title><description><![CDATA[<p dir="auto">Sadly, we are tied to the legacy M2M architecture (Mango M2M v. 1.2.4). Are you familiar with it? I have had just a cursory look into the current Mango Automation code so I do not know which parts changed substantially / which parts stayed the same sufficiently. I am sure they diverged quite a bit... Do you think it would be feasible to start on a common subset of the code if there is any? I could think of Spring Testing framework (v. 1.2.4 uses Spring 2.5.3 IIRC) as a start for the Spring parts that did not change(?).</p>
<p dir="auto">My priority would be to write tests that faciliate new data source implementations, e.g. event based data sources could be checked with a controlled timer in terms of data point setting. Also, to have known system states (i.e. data bases), I thought of using <a href="http://dbunit.sourceforge.net" rel="nofollow ugc">http://dbunit.sourceforge.net</a>.</p>
<p dir="auto">I will be on holidays the next week so in case you think this is worthwile, let me know and I will check back.</p>
]]></description><link>https://forum.mango-os.com/post/8693</link><guid isPermaLink="true">https://forum.mango-os.com/post/8693</guid><dc:creator><![CDATA[fleimgruber]]></dc:creator><pubDate>Fri, 13 Jun 2014 13:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Thu, 12 Jun 2014 23:25:53 GMT]]></title><description><![CDATA[<p dir="auto">fleimgruber,</p>
<p dir="auto">I think we should discuss this in public in case anyone else wants to get involved.</p>
<p dir="auto">Just to be clear, you are referring to the current Mango Automation core code from here:  <a href="https://github.com/infiniteautomation/ma-core-public" rel="nofollow ugc">https://github.com/infiniteautomation/ma-core-public</a> and not the legacy M2M architecture?</p>
<p dir="auto">We are working in the development branch and you will see we have recently converted to using Maven for dependency management and will eventually be using it for our Builds too.  This is good news for this discussion because we can automate the testing that way.</p>
<p dir="auto">I am happy to spend some of my time laying out the framework and base classes for testing but the major problem has always been we don't have the time or resources to write tests for the existing code.  What are your priorities for testing?  Modules? Core?  What are your requirements for the tests?</p>
<p dir="auto">This is the type of thing we can do in small parts so if you have a specific need we can address that first and then start fleshing out other tests over time.</p>
<p dir="auto">Thanks for your interest in Mango.</p>
]]></description><link>https://forum.mango-os.com/post/8690</link><guid isPermaLink="true">https://forum.mango-os.com/post/8690</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Thu, 12 Jun 2014 23:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Thu, 12 Jun 2014 14:27:57 GMT]]></title><description><![CDATA[<p dir="auto">I am interested in working with you. Do you want to discuss things right here or via PM?</p>
]]></description><link>https://forum.mango-os.com/post/8687</link><guid isPermaLink="true">https://forum.mango-os.com/post/8687</guid><dc:creator><![CDATA[fleimgruber]]></dc:creator><pubDate>Thu, 12 Jun 2014 14:27:57 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Wed, 11 Jun 2014 21:38:35 GMT]]></title><description><![CDATA[<p dir="auto">There is no test framework currently being used.  This is mostly because there are no tests that have been written.  This is something we are looking at doing in the future, if you are interested in working with us to implement tests we can get something started sooner.</p>
]]></description><link>https://forum.mango-os.com/post/8683</link><guid isPermaLink="true">https://forum.mango-os.com/post/8683</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Wed, 11 Jun 2014 21:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Test Framework for Mango on Wed, 11 Jun 2014 15:25:46 GMT]]></title><description><![CDATA[<p dir="auto">FWIW, I bump this since we are in a similar situation.</p>
]]></description><link>https://forum.mango-os.com/post/8681</link><guid isPermaLink="true">https://forum.mango-os.com/post/8681</guid><dc:creator><![CDATA[fleimgruber]]></dc:creator><pubDate>Wed, 11 Jun 2014 15:25:46 GMT</pubDate></item></channel></rss>