You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(58) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(23) |
Feb
(3) |
Mar
(6) |
Apr
(4) |
May
(15) |
Jun
(22) |
Jul
(18) |
Aug
(3) |
Sep
(25) |
Oct
(7) |
Nov
(86) |
Dec
(9) |
| 2006 |
Jan
(20) |
Feb
(44) |
Mar
(59) |
Apr
(23) |
May
(37) |
Jun
(35) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(21) |
Nov
(17) |
Dec
(22) |
| 2007 |
Jan
(13) |
Feb
(7) |
Mar
(1) |
Apr
(13) |
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
(8) |
Sep
(13) |
Oct
(22) |
Nov
(3) |
Dec
|
| 2008 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(34) |
Aug
(10) |
Sep
(5) |
Oct
(6) |
Nov
(8) |
Dec
|
| 2009 |
Jan
(1) |
Feb
(10) |
Mar
(4) |
Apr
(12) |
May
(10) |
Jun
(27) |
Jul
|
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(1) |
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Luke B. <lb...@gm...> - 2005-07-04 23:50:30
|
Hey Kris, I've been using CVS for a long time now too - but I'm also very inexperienced when it comes to dealing with patches! Maybe we can learn this thing together. ;-) I've checked in my branch - the head revision should be all set for you to do an update. What platform are you running?=20 I use Windows which means that I get to use Tortoise SVN. In this case, you can just right click on a CVS repository and choose "Create Patch". This will generate a .patch text file that contains all of your changes. You can simply email me that patch file, I can easily integrate on my end and then you'll need to do another update. One thing that has worked pretty well for me in the past, was to actually copy the cvs directories into my Macromedia Configuration directory. Then I can edit the actual files as they're being used, test them, and update them periodically to get the latest. I wouldn't recommend "leaving" your config in this state, but for periods of heavy development, it helps find the simple errors sooner. I just did a quick google search on "create cvs patch file" and there seem to be a lot of resources out there. Here's the first one that came up for me: http://owen.sj.ca.us/rkowen/howto/cvs.html#patch Basically, what I'll be looking for is a single .patch file that includes all changes that you've made since the repository was last updated. Thanks, Luke Bayes www.asunit.com |
|
From: Kristopher S. <ksc...@re...> - 2005-07-04 16:24:12
|
Luke, I've checked out the source from CVS. I'm anxious to get started, so = whenever you want to check in the latest stuff I'll go ahead and update = my files. As far as a javadoc parser for AS, I use AS2Doc (http://www.as2doc.com). = It's not free, but I prefer it because it will output so so many formats = - HTML, Rich Text, Flash Help, XML - and has support for XSLT. But it's = been a few months sinced I've looked at the state of the free AS doc = parsers out there, so maybe there are some decent free alternatives. Kris |
|
From: Luke B. <lb...@gm...> - 2005-07-04 01:18:11
|
Hey Don, Thanks for the reply. I definitely appreciate your patience in getting through this. If you wouldn't mind, could you please let me know exactly which files were still complaining about the unused import statements? It would really help us get AsUnit to be less painful for everyone! Thanks, Luke Bayes www.asunit.com On 7/3/05, Don Petersen <dpe...@cr...> wrote: > Luke, >=20 > I was writing my follow-up email as you sent this. You're definitely > right about Object not being treated as dynamic. But to summarize my > other email, as far as I can tell it is only an issue when compiling > through Flashout, and only on Linux. I'd love to see if anybody else > has the same issue with a similar setup, or if I'm just "lucky"! >=20 > I did go ahead and modify ASUnit as you directed below(and in a few > other places, as that issue pops up elsewhere). A couple minutes of > modification and now I'm compiling OK in Flashout. Given the crazy set > up circumstances that have to appear for this to happen, I definitely > wouldn't call it an issue with ASUnit. I'll leave my copy modified for > the weekend and see if Eugene or anybody else has the same issue, or any > ideas why it might be occuring. >=20 > As far as immense frustration, it was hardly that bad. I'm just excited > to be able to use this cool piece of software now! Unit Testing, here I > come... >=20 > Don Petersen >=20 >=20 > > I just caught this post and it looks like there are a couple bugs in > > AsUnit related to the latest MTASC compiler. > > > > I just fixed and checked in the Test.as warning in the cvs sources, if > > it bothers you (as much as it would bother me!), feel free to remove > > the import statement from that file in your local build, it will be > > fixed in the next release. > > > > As far as the error goes... > > > > /home/dpetersen/workspace/test_ut/src/com/asunit/framework/Assert.as:98= : > > characters 5-22 : type error Object have no field equals > > > > It loos like MTASC is not treating the Object object as a "dynamic" > > class in this case. > > > > I don't have FAME all set up on this system right now, so I can't > > really test a fix. Could someone take a look at line 98 of the > > com.asunit.framework.Assert class? > > > > It looks to me like this statement: > > > > if(assertion1.equals !=3D undefined) { > > addTestResult(String(msg), "assertEquals", > > assertion1.equals(assertion2)); > > } else if(assertion2.equals !=3D undefined) { > > addTestResult(String(msg), "assertEquals", > > assertion2.equals(assertion1)); > > } else { > > addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D > > assertion2); > > } > > > > Might need to change to: > > > > if(assertion1["equals"] !=3D undefined) { > > addTestResult(String(msg), "assertEquals", > > assertion1["equals"](assertion2)); > > } else if(assertion2["equals"] !=3D undefined) { > > addTestResult(String(msg), "assertEquals", > > assertion2["equals"](assertion1)); > > } else { > > addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D > > assertion2); > > } > > > > Do the brackets work in MTASC? > > > > Could you try pasting this into your local build and let me know if it > > works? > > > > Thanks for the heads up and sorry for the immense frustration! >=20 > _______________________________________________ > osflash mailing list > os...@os... > http://osflash.org/mailman/listinfo/osflash_osflash.org > |
|
From: Luke B. <lb...@gm...> - 2005-07-03 22:09:40
|
---------- Forwarded message ----------
From: Luke Bayes <lb...@gm...>
Date: Jul 3, 2005 3:08 PM
Subject: Re: [osflash] ASUnit, MTASC, and Me
To: Open Source Flash Mailing List <os...@os...>
Cc: dpe...@cr...
Hey Guys,
I just caught this post and it looks like there are a couple bugs in
AsUnit related to the latest MTASC compiler.
I just fixed and checked in the Test.as warning in the cvs sources, if
it bothers you (as much as it would bother me!), feel free to remove
the import statement from that file in your local build, it will be
fixed in the next release.
As far as the error goes...
/home/dpetersen/workspace/test_ut/src/com/asunit/framework/Assert.as:98:
characters 5-22 : type error Object have no field equals
It loos like MTASC is not treating the Object object as a "dynamic"
class in this case.
I don't have FAME all set up on this system right now, so I can't
really test a fix. Could someone take a look at line 98 of the
com.asunit.framework.Assert class?
It looks to me like this statement:
if(assertion1.equals !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion1.equals(assertion2));
} else if(assertion2.equals !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion2.equals(assertion1));
} else {
addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D ass=
ertion2);
}
Might need to change to:
if(assertion1["equals"] !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion1["equals"](assertion2));
} else if(assertion2["equals"] !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion2["equals"](assertion1));
} else {
addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D ass=
ertion2);
}
Do the brackets work in MTASC?
Could you try pasting this into your local build and let me know if it work=
s?
Thanks for the heads up and sorry for the immense frustration!
Thanks,
Luke Bayes
www.asunit.com
|
|
From: Luke B. <lb...@gm...> - 2005-07-03 22:09:11
|
---------- Forwarded message ---------- From: Don Petersen <dpe...@cr...> Date: Jul 3, 2005 11:41 AM Subject: [osflash] ASUnit, MTASC, and Me To: Open Source Flash Mailing List <os...@os...> I've tried to work this out on my own, I've been throught the archives for this list, the MTASC list, and the ASUnit list. I can't find anyone else having this problem, leading me to believe I'm screwing *something* up. But I can't figure it out. I figure that the problem is with me, and this list is probably a better forum than the ASUnit list to find other users who have ASUnit running with FAMES. I'm trying to run the great tutorial that Aral created in his blog here: http://flashant.org/index.php?p=3D375&c=3D1 I've literally just downloaded his example files, and downloaded the newest version of ASUnit. I'm receiving the following compile error from MTASC when I try to compile the example: _______________________________________________________ /home/dpetersen/workspace/test_ut/src/com/asunit/framework/Test.as:2: characters 0-6 : Warning import not used /home/dpetersen/workspace/test_ut/src/com/asunit/framework/Assert.as:98: characters 5-22 : type error Object have no field equals _______________________________________________________ I'm including the warning in there, even though I'd imagine it's unrelated. As you can see, the errors that it's throwing are with the ASUnit source files that I downloaded. I just want to verify: This is working for some folks, correct? Under the assumption that it was something with my setup, I've tried numerous things. I was using MTASC 1.06, so I compiled 1.08 for Linux and used it, same result. I grabbed a fresh copy of the Macromedia Classes and included them, no change. I tried the modified version of ASUnit that is referenced at the top of the article, same problem. I've deleted it all and started from scratch twice, just to make sure I didn't miss any steps. No dice. My only other though was that I possibly downloaded an older version of ASUnit by mistake, since the file doesn't hint at it's version, it's just "AsUnit-src.zip". But checking the RELEASE_NOTES.TXT, it's version 2.6.4. My "installation" process for ASUnit was simply downloading the Source Code(http://prdownloads.sourceforge.net/asunit/AsUnit-src.zip?download) and unzipping it. I put the com folder in my classpath, along with the Sys.as file. I also copied the "ASUnit UI.swf" to my webroot so that I could access it from the "PHP Browser" panel, as described in the tutorial. No problems with that step, I was able to see 1 of 2 asserts pass when I ran Aral's already-compiled SWF. Did I miss anything else? Looking at the other files distributed with it, I didn't feel that they were applicable for use in FAMES. I'm stumped, and I have a bad feeling I'm missing something basic. Don Petersen _______________________________________________ osflash mailing list os...@os... http://osflash.org/mailman/listinfo/osflash_osflash.org |
|
From: Keith P. <kp...@bi...> - 2005-07-01 23:17:41
|
When I finish my current writing project, I'll probably post a few tutorials on getting started with AsUnit. Keith > -----Original Message----- > From: asu...@li... > [mailto:asu...@li...] On Behalf > Of David Holroyd > Sent: Friday, July 01, 2005 3:34 PM > To: asu...@li... > Subject: Re: [Asunit-users] Great tool, but where's the documentation? > > On Fri, Jul 01, 2005 at 12:22:40PM -0700, Luke Bayes wrote: > > As far as the actual JavaDoc comments, I know there are a > few JavaDoc > > ActionScript engines out there - does anyone have any > opinions about > > which are better and why? > > *grin* > > I kinda like this one, > > http://www.badgers-in-foil.co.uk/projects/as2api/ > > I am, of course, very biased. > > > dave > > -- > http://david.holroyd.me.uk/ > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > |
|
From: David H. <wa...@us...> - 2005-07-01 19:33:39
|
On Fri, Jul 01, 2005 at 12:22:40PM -0700, Luke Bayes wrote: > As far as the actual JavaDoc comments, I know there are a few JavaDoc > ActionScript engines out there - does anyone have any opinions about > which are better and why? *grin* I kinda like this one, http://www.badgers-in-foil.co.uk/projects/as2api/ I am, of course, very biased. dave -- http://david.holroyd.me.uk/ |
|
From: Luke B. <lb...@gm...> - 2005-07-01 19:22:47
|
Hey Kris, > Would it be possible for me to contribute to the ASUnit project by > adding javadoc-style comments to the code? That way we could export > javadoc-style API documentation easily. If you think this is a good > idea, just let me know what I need to do to be added to the contributors > list. Thanks! YES! It would definitely be possible. Basically, what we'll need, is for you to use anonymous cvs access to the sourceforge repository, make whatever changes you want, and send us a "Patch" file. If you're on Windows, this is amazingly easy to do using tortoise cvs. http://www.tortoisecvs.org/ If you're on mac search for something call eapcvs or something like that - it's a gui java cvs client. here are the instructions for pulling down the sources vis CVS: http://sourceforge.net/cvs/?group_id=3D108947 Whenever you want to do a check-in just send me the .patch file and I'll review, give feedback and integrate! Just to save us all some time and trouble, please fire off an email whenever you start working so that i can make sure to commit and you can make sure to update to the latest sources. This will help us avoid conflicts and time-consuming merges. As far as the actual JavaDoc comments, I know there are a few JavaDoc ActionScript engines out there - does anyone have any opinions about which are better and why? Welcome Aboard Kris! Luke Bayes www.asunit.com |
|
From: Kristopher S. <ksc...@re...> - 2005-07-01 12:56:53
|
Thanks, Luke! Luckily, I did have enough of a basic understanding of JUnit to get things working, and I did sift through the source code to discover the available asserts. Once I spend a little more time with ASUnit, I'll be happy to put together some documentation! Kris =20 --=20 =20 Kristopher Schultz Developer =20 Resource Interactive p: 614.410.2123 www.resource.com =20 > -----Original Message----- > From: Luke Bayes [mailto:lb...@gm...]=20 > The truth is that until this very week, most of the people=20 > participating in AsUnit did seem to have experience with=20 > other xUnit frameworks. So documentation has not been as high=20 > a priority as adding features and bug fixing... |
|
From: Luke B. <lb...@gm...> - 2005-06-30 22:55:00
|
Hey Kristopher, Thanks very much for your feedback, we really appreciate getting questions from the community so that we can better prioritize our time! The truth is that until this very week, most of the people participating in AsUnit did seem to have experience with other xUnit frameworks. So documentation has not been as high a priority as adding features and bug fixing... It seems you're the third or fourth person in the past week or two that has been begging for more thorough documentation (or any at all for that matter). I agree wholeheartedly that it's high time for someone to get the documentation together for this product. Unfortunately, (or fortunately - depending on how you look at it) I am pretty swamped with other paying work for the next couple of months... I can't express how grateful we would be if someone out there would contribute some time to documenting this product. This is an open-source project and is provided to the community with the hope that the community will help us by contributing. If you are one of the people using AsUnit, and find it to be a useful tool, please contribute by spending a few hours putting together some simple documentation... Feel freel to let us know if you are considering doing it, we will be happy to talk on the phone or email back and forth with any answers or suggestions. Kristopher, I appreciate that your questions are very specific, so here are the answers to those question - if you have any more specific questions, please let us know: - What does setUp and tearDown do? The TestCase class (the superclass of all Test Cases) will iterate over every method found in your subclass that begins with the string "test". For each item found, it will execute setUp(), then the method, and then tearDown(). This allows you to build (and then destroy) a clean environment for each and every test method within setUp and tearDown, then to operate on that environment in the test method. An example of this functionality can be found in the default TestCase template that is generated by the Create Class command. - What kind of asserts are available? You can check the com.asunit.framework.Assert.as file and you will find every assertion that is available, along with it's method signature. Assertions should all have an optional string message parameter as their first argument. if you use PrimalScript, and the project builder that I published a long time ago on my blog, you can actually get code hinting for all of these methods as well as hinting for your own custom classes. (http://lukebayes.blogspot.com/2004/09/i-had-this-problem.html) I'm going to go out on a limb and assume that the ASDT in Eclipse should provide this sort of functionality natively - but I'm not positive about that. Thanks, Luke Bayes www.asunit.com |
|
From: Kristopher S. <ksc...@re...> - 2005-06-30 20:25:05
|
I've downloaded and installed ASUnit, but it seems that the documentation available at the link below is inadequate for anyone who hasn't used one of the other xUnit frameworks before. Is the expectation that users should turn to the documentation of the *other* frameworks to try and figure out how *this* implementation can be used? Or is there some documentation out there that I'm missing? What I'm particularly interested in are API docs that answer questions like, "what kind of asserts are available?", "what does setup() do?", and "what does tearDown() do?" Thanks in advance for any resources you can point me to. http://sourceforge.net/docman/?group_id=3D108947 Kris =20 --=20 =20 Kristopher Schultz Developer =20 Resource Interactive p: 614.410.2123 www.resource.com |
|
From: Aldo B. <ald...@gm...> - 2005-06-27 18:24:22
|
Excellent Ian, The reason I'm sticking to SEPY is that is is much faster to get the workflow running. I have subordinate developers and I don't want them to loose focus on their programming by getting them into FLAME which, great as it is, still requires some extra general knowledge (=20 eclipse, mtasc, asdt), and troubleshooting is not trivial yet. I was wondering... perhaps Sephiroth would be interested on your work and willing to integrate a compiler and unit testing to SEPY. After all, a one man project is much faster to steer. Looking forward to reading your tut! Best Regards, Aldo On 6/27/05, Ian Tyrrell <Ia...@mo...> wrote: > =20 > =20 >=20 > Today I figured out how to add the ASUnit gui swf to SEPY as a side panel > (like the Project/Class explorer/Members/Todo panels). I'm also in the > process of writing some ANT targets which you can trigger from SEPY with = a > keypress to accomplish tasks such as auto-generating test suites > (AllTests.as), compiling and loading your generated swf in the stand alon= e > flash player. My aim is to produce a viable alternative to FLAMES based > around SEPY until ASDT is stable enough for everyday use. Once my work is > complete, I'll create a tutorial on osflash.org.=20 >=20 > Kind Regards,=20 >=20 > =20 >=20 > Ian=20 >=20 > =20 >=20 > Ian Tyrrell,=20 >=20 > Senior Developer,=20 >=20 > Greek Attic Ltd=20 >=20 > =20 --=20 ::::: Aldo Bucchi ::::: mobile (56) 8 429 8300 |
|
From: Ian T. <Ia...@mo...> - 2005-06-27 16:56:31
|
Today I figured out how to add the ASUnit gui swf to SEPY as a side panel (like the Project/Class explorer/Members/Todo panels). I'm also in the process of writing some ANT targets which you can trigger from SEPY with a keypress to accomplish tasks such as auto-generating test suites (AllTests.as), compiling and loading your generated swf in the stand alone flash player. My aim is to produce a viable alternative to FLAMES based around SEPY until ASDT is stable enough for everyday use. Once my work is complete, I'll create a tutorial on osflash.org. Kind Regards, =20 Ian =20 Ian Tyrrell, Senior Developer, Greek Attic Ltd =20 |
|
From: Aral B. <ar...@ar...> - 2005-06-25 11:36:54
|
Hi Aldo, Check this out for using AsUnit with Eclipse/FAMES: http://flashant.org/index.php?p=375&more=1&c=1 hth, Aral PS. Didn't realize that responses didn't go to the list, so resending in case anyone else is interested. Aldo Bucchi wrote: >Hi all, > >I just downloaded asunit. I was wondering if there is any integration >with sepy, or eclipse. >BTW, I couldn't find much docs on the website. Any pointers? > >Thanks, >Aldo > |
|
From: Luke B. <lb...@gm...> - 2005-06-24 17:22:30
|
Hey Aldo, This is our first ever Sepy question, so we haven't put any time into Sepy integration... Paul Spitzer and some other folks have done quite a bit of work on Eclipse integration though. http://www.paulspitzer.com/ I'm really sorry about the dearth of documentation. If you find yourself struggling with something in particular, please fire an email to this list - we try hard to be responsive. If you have some specific documentation that you wish you had, please feel free to contribute to the project by writing it! Thanks, Luke Bayes www.asunit.com |
|
From: Aldo B. <ald...@gm...> - 2005-06-23 20:37:49
|
Hi all, I just downloaded asunit. I was wondering if there is any integration with sepy, or eclipse. BTW, I couldn't find much docs on the website. Any pointers? Thanks, Aldo --=20 ::::: Aldo Bucchi ::::: mobile (56) 8 429 8300 |
|
From: Luke B. <lb...@lu...> - 2005-06-22 03:42:41
|
Hey Marcus, Sorry about not getting back to you yesterday. I had kind of a long work day! As far as running the Create Class from your desktop - that shouldn't = work, and we really need to make that more clear. You might now have an = additional problem, in that any other folders that were on your desktop now have an AllTests.as file in them - RECURSIVELY... To remedy this, just open up a new File Explorer, browse to your Desktop Folder in the Explorer panel, and Right-Click, choose Search. Search for "AllTests.as" (without the quotes) and just select all of the results and delete them. You can always regenerate these files in your working directory by = opening the .FLA file, from the commands menu, choose Build Test Suites. I'm going to forward this response and your message to the AsUnit list, = as I think it would be very helpful. I'm sorry for any inconvenience this may have caused! Thanks, Luke Bayes www.asunit.com -----Original Message----- From: Marcus Sent: Tuesday, June 21, 2005 7:01 PM Subject: Possible bug with AsUnit Morning (where I am at anyway), Luke, I sent you a mail yesterday arvo about a problem I was having = using AsUnit. It went something like, 'All the AllTests classes were being created, = but not the example class or it's test counterpart'. I'd looked every where for other people having the same problems, I increased the download count from sourceforge by about 500, removed, reloaded, gave my stress balls a good work out and it still wouldn't = play nice for me. Then I simply moved the project folder I was working with from my = desktop into another folder on my C drive. And wolah! It works like a charm. Bit weird, hey? But I figure it has to be that I'm working on a Japanese system and the path to the desktop is :=20 [Removed for security reasons] Nice chunk of Japanese thrown in there in the middle.=20 When the path is all English, no problems. Again, all the AllTest classes were created ok. Only the = Example/ExampleTest were being left out. One likes UTF-8, one doesn't? Anyway, I got it running so I'm going to test the hell out everything I = can get my hands on today. Have a good one, Marcus |
|
From: Keith P. <kp...@bi...> - 2005-06-14 12:16:45
|
> -----Original Message-----
> From: asu...@li...
> [mailto:asu...@li...] On Behalf
> Of Luke Bayes
> Just caught this on the osflash list and wanted to make sure
> we had 'em here too!
>
I just updated these to use built in eclipse variables for package and type.
Now it fills in almost everything for you.
AllTests:
=========
import com.asunit.framework.*;
class AllTests extends TestSuite {
private var className:String = "AllTests";
public function AllTests()
{
super();
addTest(new ${enclosing_package}.${package}.AllTests());
// and/or add specific tests here
}
}
TestCase:
=========
import ${enclosing_package}.*;
import com.asunit.framework.*;
class ${enclosing_package_and_type} extends TestCase {
private var className:String = "${enclosing_package_and_type}";
private var instance:${enclosing_type};
public function setUp():Void {
instance = new ${enclosing_type}();
}
public function tearDown():Void {
delete instance;
}
public function testInstantiated():Void {
assertTrue("${enclosing_type} instantiated", instance
instanceof ${enclosing_type});
}
}
|
|
From: Luke B. <lb...@gm...> - 2005-06-14 06:47:23
|
Hey Folks, Just caught this on the osflash list and wanted to make sure we had 'em here too! Many thanks to Keith! Luke Bayes www.asunit.com ---------- Forwarded message ---------- From: Keith Peters Date: Jun 13, 2005 1:46 PM One thing I missed about Eclipse is the missing Create Classes command. These templates should help: AllTests: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D import com.asunit.framework.*; class AllTests extends TestSuite { private var className:String =3D "AllTests"; public function AllTests() { super(); addTest(new ${package}.AllTests()); // and/or add specific tests here } } TestCase: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D import ${package}.*; import com.asunit.framework.*; class ${package}.${className} extends TestCase { private var className:String =3D "${package}.${className}"; private var instance:${className}; public function setUp():Void { instance =3D new ${className}(); } public function tearDown():Void { delete instance; } public function testInstantiated():Void { assertTrue("${className} instantiated", instance instanceof ${className}); } } Just go to Windows/Preferences/ActionScript 2/Templates. Click "New...", ad= d name and description and paste the code. Now, in an .as file, type "TestCase" or "AllTests" and hit control-space. You'll be prompted for the needed info to finish the class. |
|
From: Ali M. <ali...@gm...> - 2005-06-14 04:36:16
|
Hey there, I'm re-reading "Test-Driven Development by Example" (http://www.amazon.com/exec/obidos/tg/detail/-/0321146530/qid=3D1118722781/= sr=3D8-1/ref=3Dpd_csp_1/104-5276191-3223133?v=3Dglance&s=3Dbooks&n=3D507846= ) and using a suggestion on page 148 that I'm finding pretty useful. I thought I'd share it with the group. The suggestion is to end every programming session by leaving your last test broken. This way, when you sit back down to code again you have a specific place to start. You jump straight back into the train of thought you had when you stopped programming last. I've found technique to be a very useful way to keep my train of thought straight from one day to the next. Funny thing is that I'm actually writing this email because I forgot to leave a test broken the last time I was at the computer. I didn't know where to start, so I ended up writing this email. Pretty silly side-track... Have fun. Ali |
|
From: iiley <iil...@gm...> - 2005-06-09 04:06:33
|
Yup, thanks for your advise Luke, i post the util to osflash list. 2005/6/9, Luke Bayes <lb...@gm...>: > Hey iiley, >=20 > Thanks for the post! >=20 > If you publish that little util under an open source license, you can > put some word out at www.osflash.org. >=20 >=20 > Luke Bayes > www.asunit.com > |
|
From: Luke B. <lb...@gm...> - 2005-06-08 16:33:19
|
Hey iiley, Thanks for the post! If you publish that little util under an open source license, you can put some word out at www.osflash.org. Luke Bayes www.asunit.com |
|
From: iiley <iil...@gm...> - 2005-06-08 13:28:33
|
Thank for your tips, yes, "escape(myXml.toString());" works, but it
replace "<","/"... to some like "%xx", it is not very good look.
Then i wrote a little tool today(Only 4 little class), it is useful to
me, maybe it is useful for some others too, I named it
BLog(Bridge/Switcher Log), you know some time you want to log message
only use Sys.println or trace, This is easy if you use TRACE with
MTASC, but ... then you want to do a more particular log, for example,
you want to view logs with different color between log, debug,
warning, error, you will changed all TRACE to the specified Flashout
methods, is that troublesome(you have to replace all TRACE sentences)?
you know TRACE only can replaced by one method. So i did things this
way:
TRACE("Some trace.");
TRACE("Some debug.", "DEBUG");
TRACE("Some error..", "ERROR");
Then use DBlog.handleLog to replace TRACE(through mtasc compile param
-trace), TRACE("Some debug.", "DEBUG"); will trace as a debug,
TRACE("Some trace."); will trace as normal, etc...
You can see the particular usage and download this little tool here:
http://www.aswing.org/tools/b_log.html
Hope this can help some.
2005/6/8, Luke Bayes <lb...@gm...>:
> aaaah...
>=20
> Nice catch!
>=20
> We'll need to take a look at that for the next release....
>=20
> We actually do some work with escape/unescape... But you might be able
> to make it work by doing something hacky like:
>=20
> escape(myXml.toString());
>=20
> That may not work because we might already be doing that - and then
> automatically unescaping it on the other side of the local connection.
>=20
> This is a pretty big issue for sure - I'm going to escalate this as a
> very high priority for the next release.
>=20
> Thanks for the feedback - and especially the clarification!
>=20
>=20
> Luke Bayes
> www.asunit.com
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games. How far can you sho=
tput
> a projector? How fast can you ride your desk chair down the office luge t=
rack?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
|
|
From: Luke B. <lb...@gm...> - 2005-06-07 18:22:36
|
Hey Folks -=20 I just checked in a new build to CVS. It would be great if some of you could install this build and let me know if there are any glaring or new problems. This build includes a MAJOR performance improvement for those of you that are executing many many tests. Basically, we're now grouping transmission over local connection so that the assertions are sent in groups of 100. There is a risk that if you have extremely large "message" strings, this number might exceed the 40k serialized data limit that is imposed on Local Connection communication. Sadly, the result of this failure will simply be that your assertions don't get sent to the UI. I'm hoping that 100 very simple objects should serialize to smaller than 40k no matter what you put in those messages (within reason of course). But if you get "missing' tests, please let me know so I can lower this limit. (The number is set in com.asunit.framework.TestRunner btw) Here are the production notes for this build: - Added delay to the LocalConnection so that it now groups requests before sending them. This makes the environment MUCH more responsive - especially when executing many many tests. Special thanks to Robert Penner for suggesting this feature and another thanks goes to the osflash.org list for their VERY informative discussion about LocalConnection size limits (this was incredibly frustrating!) - Added "cleanUp" method that gets executed after all test methods =09are executed. This should allow us to clean up member / global=20 =09vars that are created during async TestCases. - Added note to Build Test Suites.jsfl to clarify "ignoreDirs" param. - Updated Create Class.jsfl to work with versions of Flash that are =09more recent than 7.2... - Updated TestCase.cleanUp method to remove the Void argument as that =09was causing problems in MTASC when using the -strict flag. The .MXP installer found there should work for those of you that are using Flash and the source files should continue to work for those of you that aren't. Thanks, Luke Bayes www.asunit.com |
|
From: Luke B. <lb...@gm...> - 2005-06-07 17:54:01
|
aaaah... Nice catch! We'll need to take a look at that for the next release.... We actually do some work with escape/unescape... But you might be able to make it work by doing something hacky like: escape(myXml.toString()); That may not work because we might already be doing that - and then automatically unescaping it on the other side of the local connection. This is a pretty big issue for sure - I'm going to escalate this as a very high priority for the next release. Thanks for the feedback - and especially the clarification! Luke Bayes www.asunit.com |