You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Mihai Chira <mi...@gmail.com> on 2014/07/15 14:10:29 UTC

Unit testing the SDK

Is there a way to write and run unit tests (e.g. FlexUnit) to test the
SDK? I know we use Mustella, but from what I can tell, mustella tests
need a UI / swf to run, rather than just testing a class without the
need for a UI.

I ask because I'd like to write some unit tests for
HierarchicalCollectionViewCursor for this bug[1] I'm working on. Do I
need to write mustella tests, or can I write FlexUnit ones?

Thanks.
Mihai

[1] https://issues.apache.org/jira/browse/FLEX-34119

Re: Unit testing the SDK

Posted by Mihai Chira <mi...@gmail.com>.
All right, good to know.

About the path - should I add a unit test called
HierarchicalCollectionViewCursorTest_FLEX_34119 in
sdk\frameworks\projects\advancedgrids\test\mx\collections, or is it
better in sdk\frameworks\tests\mx\collections?

Also, what is the whiteboard? The only things I could find about it
were this[1] and that "Committers are granted access to a whiteboard
where they can share thoughts and code for discussion through a
Whiteboard"[2].

[1] https://cwiki.apache.org/confluence/display/FLEX/Instructions+for+Github+based+Whiteboard
[2] https://cwiki.apache.org/confluence/display/FLEX/Decisions+so+far

On 15 July 2014 16:30, Michael A. Labriola <la...@digitalprimates.net> wrote:
>>I have about 80 or so FlexUnit collection tests that were in my white board to supplement the mustella ones, but they are not currently run automatically.
>
> I also have some in my whiteboard for VectorCollection.... and there are the FlexUnit tests themselves in the FlexUnit repo.
>
> But no, there are no further unit tests against the SDK.
>
> Mike
>

RE: Unit testing the SDK

Posted by "Michael A. Labriola" <la...@digitalprimates.net>.
>I have about 80 or so FlexUnit collection tests that were in my white board to supplement the mustella ones, but they are not currently run automatically.

I also have some in my whiteboard for VectorCollection.... and there are the FlexUnit tests themselves in the FlexUnit repo.

But no, there are no further unit tests against the SDK. 

Mike


Re: Unit testing the SDK

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> PS: searching for "[Test]" in all *.as files yields 0 results as well.

I have about 80 or so FlexUnit collection tests that were in my white board to supplement the mustella ones, but they are not currently run automatically.

Given that Flex Unit has been released under Apache I see no reason not to use it.

Justin

Re: Unit testing the SDK

Posted by piotrz <pi...@gmail.com>.
TLF unit tests were written in Flex Unit 1, so you will not find in develop
branch any test marked [Test], but in branch FlexUnit4TestsTLF you will find
couple of tests rewritten to Flex Unit 4.

I hope I will back to this soon.

Piotr



-----
Apache Flex Committer
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Unit-testing-the-SDK-tp39141p39148.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: Unit testing the SDK

Posted by Mihai Chira <mi...@gmail.com>.
PS: searching for "[Test]" in all *.as files yields 0 results as well.

On 15 July 2014 15:12, Mihai Chira <mi...@gmail.com> wrote:
> Thanks for that, good to know.
> But I just did a global search for "flexunit" in all *.as files in
> both the sdk and tlf. The only ones I could find are in
> tlf\automation_core\src\UnitTest\. Does this mean I am going to write
> and commit the first ever unit (i.e. non-mustella) tests for the SDK?
> That feels very unlikely, so I guess I'm not searching right.
>
> On 15 July 2014 14:00, Justin Mclean <ju...@classsoftware.com> wrote:
>> Hi,
>>
>>> Do I need to write mustella tests, or can I write FlexUnit ones?
>> IMO any tests are fine and mustella test can be tricky to write if you're new to it.
>>
>> Justin

Re: Unit testing the SDK

Posted by Mihai Chira <mi...@gmail.com>.
Thanks for that, good to know.
But I just did a global search for "flexunit" in all *.as files in
both the sdk and tlf. The only ones I could find are in
tlf\automation_core\src\UnitTest\. Does this mean I am going to write
and commit the first ever unit (i.e. non-mustella) tests for the SDK?
That feels very unlikely, so I guess I'm not searching right.

On 15 July 2014 14:00, Justin Mclean <ju...@classsoftware.com> wrote:
> Hi,
>
>> Do I need to write mustella tests, or can I write FlexUnit ones?
> IMO any tests are fine and mustella test can be tricky to write if you're new to it.
>
> Justin

Re: Unit testing the SDK

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Do I need to write mustella tests, or can I write FlexUnit ones?
IMO any tests are fine and mustella test can be tricky to write if you're new to it.

Justin

Re: Unit testing the SDK

Posted by piotrz <pi...@gmail.com>.
Hi Mihai,

You can check branch with TLF unit tests, maybe it will help you a bit.
http://bit.ly/1zEX3GY

Piotr



-----
Apache Flex Committer
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Unit-testing-the-SDK-tp39141p39143.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.