Additional Plugins and adding support for non junit test frameworks

2 views
Skip to first unread message

Anthony

unread,
Aug 6, 2009, 12:21:11 AM8/6/09
to glean-code-users
John,

First of all I wanted to say great plugin. I'm using it mainly as a
common facade over all of the tools that u have added to the
distribution. I then allow my CI server Hudson, process the report
output and surface it up in its own dashboard. With that said I've
come to a place where I am also trying to extend the tool and its core
Java-based unit test reporting infrastructure with support for the Ant-
based Adobe FlexUnit task:
http://www.blackpepper.co.uk/black-pepper-blog/Flex-unit-testing-and-continuous-integration-Part-2-of-2.html

While I know that each tool in tool home can have a custom test script
used for it I wanted to expose the core FlexUnit testing framework to
other future tools that may also require executing it (that are added
to Glean). So the approach I'm currently attempting to follow as a
general guideline for making this sort of contribution to the
framework is:

Create a new test.xml file in the glean main folder that imports the
base test.xml file. Override the run-tests target inherited from
test.xml and have it call the new test framework instead of Junit:
<project name="glean-test-newTestFramework" default="test"
basedir=".">
<description>A unit test script for projects</description>

<!-- Inherit testing targets from base unit test file -->
<import file="test.xml" />

<!-- Override and implement run-tests target -->
<target name="run-tests">

Add your custom code here...

</target>

</project>

Do you think this is something that would be of general use to the
glean docs? If so feel free to add it. I also wanted to see if
FlexUnit support was anywhere on your current roadmap. Thanks...

John Brugge

unread,
Aug 6, 2009, 1:46:27 PM8/6/09
to glean-co...@googlegroups.com
Anthony,

Glad to hear that this is useful to you. As for FlexUnit, I'm not familiar with that, but I can look at it. It may be a little while since I'm going to be out on vacation soon, but I'll put it on my list.

Thanks for the pointer.
John

Anthony

unread,
Aug 7, 2009, 3:50:48 PM8/7/09
to glean-code-users
Thanks John. I may be working on some of this as well so I will let u
know if I end up getting something integrated in that I can contribute
back to you.

Adobe's FlexUnit4's home is:
http://forums.adobe.com/thread/443165

Its still early alpha but it seems to be trying to capture all of the
lessons learned from prior Flex testing frameworks. It is "supposed"
to be fully-backwards compatible with earlier flex unit test runners
that output xml files compatible with the junitreport task, but I
haven't had enough experience working with it personally to determine
just how well of a job it actually does in this area.

Enjoy your vacation,
Anthony
Reply all
Reply to author
Forward
0 new messages