[TDD] TDD novice in Robotlegs and AS3 using Flex Builder 4.6 Standard - how do i resolve this flexunituirunner issue?

kimcity's Avatar

kimcity

29 May, 2012 06:00 AM

I am studying the joelhooks example for Flickr service on https://github.com/joelhooks/robotlegsdemos/tree/master/FlickrImage...

Reason is I created a Service in my RBL app and I want to write unit tests for it.

I am currently using Flex Builder 4.6 Standard.

I now hit this error when I create a mxml that is a runner

http://cl.ly/Gxxf

my questions are:

1) do i need to upgrade Flex Builder 4.6 Standard to Premium for TDD to work? I am trying to avoid having to pay since I am bootstrapping.

2) I have already used github to create git submodules as libraries and have included the following libraries:

robotlegs -- master branch
swiftsuspenders -- the-past branch
mockolate -- master branch
flexunit -- master branch

see this
http://cl.ly/GwkF

and the build paths
http://cl.ly/Gy9s

Should I use swc files instead? Have I made a mistake in the way I included the source paths?

3) is my issue due to the lack of other extra swc files?

e.g., I read this and saw that

http://www.adobe.com/devnet/flex/articles/flashbuilder4_tdd.html

flexunit_0.9.swc
hamcrest-1.0.2.swc
flexunit-core-flex-4.0.0.2-sdk3.5.0.12783.swc
flexunitextended.swc
FlexUnitTestRunner_rb.swc

are recommended but they are added automatically.

I suspect that is because the author assumes the reader is using Premium.

  1. 1 Posted by kimcity on 31 May, 2012 02:00 AM

    kimcity's Avatar

    I am not getting a response in this question.

    Can someone help please?

    Thank you.

  2. Support Staff 2 Posted by Shaun Smith on 31 May, 2012 02:06 AM

    Shaun Smith's Avatar

    Hi Kimcity,

    I'm afraid I do not have a copy of Flash Builder Standard, so I can't really help.

    Looking at this page it seems that testing is not integrated into Standard:

    http://www.adobe.com/products/flash-builder/buying-guide.displayTab...

  3. Support Staff 3 Posted by Shaun Smith on 31 May, 2012 02:10 AM

    Shaun Smith's Avatar
  4. 4 Posted by kimcity on 31 May, 2012 02:12 AM

    kimcity's Avatar

    Hi Shaun,
    is it fair to say that

    using Adobe Flex Builder Premium is the tool of choice for all serious RBL developers?

  5. 5 Posted by kimcity on 31 May, 2012 02:14 AM

    kimcity's Avatar

    Ah.. the second link looks promising. Will take a closer look.

    In the meantime, what IDE is most commonly used by the RBL core team?

    Which IDE should I use to maximize my chances of building a full fledged RBL application with unit tests etc?

  6. Support Staff 6 Posted by Shaun Smith on 31 May, 2012 02:24 AM

    Shaun Smith's Avatar

    Adobe Flex Builder Premium is the tool of choice for all serious RL developers?

    No, I wouldn't say that. I used to use Flash Builder, and enjoyed it, but I switched to IntelliJ recently.

    It doen't really matter what IDE you use, just as long as you learn to use it well. Some of the RL core team members use plain text editors, and run unit tests from the command-line, and are still really productive.

  7. 7 Posted by kimcity on 31 May, 2012 02:53 AM

    kimcity's Avatar

    Thank you Shaun.

    I highly regard the writing of unit tests as important practice

    Which is one of the main reasons I went for RBL since it makes writing unit
    tests easier.

    however, for really novice developers like myself, the setting up etc
    represent a huge difficulty and hence reluctance to really get into TDD.

    Once i figured this out from start to finish, I would like to contribute
    somehow to the documentation of setting up for TDD in RBL.

    Regards
    KimSia
    金城

  8. 8 Posted by kimcity on 31 May, 2012 08:22 AM

    kimcity's Avatar

    Just to conclude, I have abandoned the practice of using git submodule to include FlexUnit4 libraries and just directly use swc files for time being.

    I have now posed the same question in FlexUnit4 Support.

    https://flexunit.tenderapp.com/discussions/problems/4-when-i-use-th...

  9. kimcity closed this discussion on 31 May, 2012 08:23 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac