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: Darren C. <da...@dc...> - 2006-05-26 09:04:21
|
> I was going to propose extending assertEquals to handle NaN as a special > case but convinced myself [otherwise]: I'm unconvinced again. I cannot assert on an array that contains some NaNs: SMA(2) of bad data expected:<,0,0,NaN,NaN,NaN> but was:<,0,0,NaN,NaN,NaN> What do other people think? Darren |
|
From: Darren C. <da...@dc...> - 2006-05-26 08:35:19
|
I finally found time to get back to the project I want to unit test, and
hit a bump when testing for an expected NaN.
I was going to propose extending assertEquals to handle NaN as a special
case but convinced myself that examples like this make that a bad idea:
assertEquals("should this pass when x==0?", x/1, x/2);
So I wrote assertIsNaN(); I was going to send a patch but it is so short
that I just included it below. It goes somewhere in Assert.as (only
tested on as2 branch).
If you want a proper patch let me know.
Darren
/**
* Asserts that assertion isNaN(); any valid number or any other
* type of object will fail the test.
*/
public static function assertIsNaN(msg:Object, assertion:Object):Void {
if(arguments.length == 1) addTestResult("", "assertIsNaN", isNaN(msg));
else addTestResult(String(msg), "assertIsNaN", isNaN(assertion));
}
|
|
From: Peter H. <pet...@gm...> - 2006-05-25 15:05:55
|
Why are you testing interfaces?
Perhaps you can identify some kind of value that I can't see?
Peter
On 5/25/06, John Mark Hawley <ma...@ni...> wrote:
>
> I've been running into a problem when testing interfaces. I've been
> following the practice described below (I can't locate the original web
> source for this...).
>
> 1. Testing ISomeType.as and SomeConcrete.as that implements ISomeType.as,
> I first create the test class ISomeTypeTest.as
>
> 2. The ISomeTypeTest.as class defines a createClassInstance() method as
> follows:
>
> public function createClassInstance() :ISomeType
> {
> return new ISomeType();
> }
>
> 3. ISomeTypeTest.as calls createClassInstance() within the setUp() method
> to define an instance to test.
>
> 4. The ISomeTypeTest defines various test methods which verify that the
> class instance functionally lives up to the interface.
>
> 5. The SomeConcreteTest.as test class is created. It extends ISomeTypeTes=
t
> and overrides createClassInstance() as follows:
>
> function createClassInstance() :ISomeType
> {
> return new SomeConcrete();
> }
>
> 6. The SomeConcreteTest.as file gains test methods to test things not
> covered by ISomeTypeTest.
>
> Now, the problem appears. AsUnit only locates the test methods
> specifically defined within SomeConcreteTest, and totally ignores the
> ISomeTypeTest test, unless I resort to some bizarre trickey. What is the
> correct way to handle this?
>
> -john mark hawley
>
> --
> John Mark Hawley
> The Nilbog Group
> 773.968.4980 (cell)
>
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications i=
n
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D107521&bid=3D248729&dat=
=3D121642
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
|
|
From: Sam <sa...@th...> - 2006-05-19 12:03:20
|
Chris,
Thanks so much for you help and insight on how to get this working.
take care
On May 18, 2006, at 5:06 PM, Chris Allen wrote:
> Hey Sam,
>
> Okay, so in my current structure I have:
>
> - classes
> - asunit/all of their stuff...
> - org/
> - osflash/
> - fling/
> - tests/
> - TestMovieAsset.as
> - assets/
> - MovieAsset.as
> - build/
> - alltests,swf
>
> That's simplified of course. ;-)
>
> So, yeah, if you need to test your class, just use import to get it to
> see your class, then use it as you see fit in your TestCase.
>
> Here is an excerpt from my TestMovieAsset class:
>
> mport asunit.framework.TestCase;
> import org.osflash.fling.util.assets.MovieAsset;
> import com.dynamicflash.utils.Delegate;
> import org.osflash.fling.util.assets.AssetLoader;
> /**
> * @author Chris Allen mrc...@gm...
> */
> class org.osflash.fling.tests.TestMovieAsset extends TestCase
> {
>
> private var className:String =
> "org.osflash.fling.tests.TestMovieAsset";
>
> private var asset:MovieAsset;
> etc...
>
> I hope that helps.
>
> -Chirs
>
> On 5/18/06, Sam <sa...@th...> wrote:
>> Just one more question.
>> How do you structure you directories?
>> I'm having a problem figuring out how to import the classes I want to
>> test.
>>
>> Here's my structure:
>>
>> flash/
>> assets/
>> libraries/
>> main/
>> classes/
>> com/
>> LuminicBox/
>> three60/
>> ClassIWantToTest.as
>> test/
>> asunit/
>> build.properties
>> build.xml
>> MyTestCase.as
>> MyTestRunner.as
>>
>> How do I import ClassIWantToTest.as into MyTestCase.as?
>> Can you back out of the current directory with import?
>>
>>
>> On May 18, 2006, at 12:15 PM, Chris Allen wrote:
>>
>> > On 5/18/06, Sam <sa...@th...> wrote:
>> >> Chris,
>> >> Thanks alot, your proccess works great. I was just about to
>> give up
>> >> on the whole thing, so thanks again.
>> >>
>> >
>> > I'm glad that it worked for you.
>> >
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd_______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
>
|
|
From: Chris A. <mrc...@gm...> - 2006-05-18 21:06:15
|
Hey Sam,
Okay, so in my current structure I have:
- classes
- asunit/all of their stuff...
- org/
- osflash/
- fling/
- tests/
- TestMovieAsset.as
- assets/
- MovieAsset.as
- build/
- alltests,swf
That's simplified of course. ;-)
So, yeah, if you need to test your class, just use import to get it to
see your class, then use it as you see fit in your TestCase.
Here is an excerpt from my TestMovieAsset class:
mport asunit.framework.TestCase;
import org.osflash.fling.util.assets.MovieAsset;
import com.dynamicflash.utils.Delegate;
import org.osflash.fling.util.assets.AssetLoader;
/**
* @author Chris Allen mrc...@gm...
*/
class org.osflash.fling.tests.TestMovieAsset extends TestCase
{
=09private var className:String =3D "org.osflash.fling.tests.TestMovieAsset=
";
=09
=09private var asset:MovieAsset;
etc...
I hope that helps.
-Chirs
On 5/18/06, Sam <sa...@th...> wrote:
> Just one more question.
> How do you structure you directories?
> I'm having a problem figuring out how to import the classes I want to
> test.
>
> Here's my structure:
>
> flash/
> assets/
> libraries/
> main/
> classes/
> com/
> LuminicBox/
> three60/
> ClassIWantToTest.as
> test/
> asunit/
> build.properties
> build.xml
> MyTestCase.as
> MyTestRunner.as
>
> How do I import ClassIWantToTest.as into MyTestCase.as?
> Can you back out of the current directory with import?
>
>
> On May 18, 2006, at 12:15 PM, Chris Allen wrote:
>
> > On 5/18/06, Sam <sa...@th...> wrote:
> >> Chris,
> >> Thanks alot, your proccess works great. I was just about to give up
> >> on the whole thing, so thanks again.
> >>
> >
> > I'm glad that it worked for you.
> >
|
|
From: Sam <sa...@th...> - 2006-05-18 18:24:17
|
Just one more question. How do you structure you directories? I'm having a problem figuring out how to import the classes I want to test. Here's my structure: flash/ assets/ libraries/ main/ classes/ com/ LuminicBox/ three60/ ClassIWantToTest.as test/ asunit/ build.properties build.xml MyTestCase.as MyTestRunner.as How do I import ClassIWantToTest.as into MyTestCase.as? Can you back out of the current directory with import? On May 18, 2006, at 12:15 PM, Chris Allen wrote: > On 5/18/06, Sam <sa...@th...> wrote: >> Chris, >> Thanks alot, your proccess works great. I was just about to give up >> on the whole thing, so thanks again. >> > > I'm glad that it worked for you. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd_______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > |
|
From: Chris A. <mrc...@gm...> - 2006-05-18 16:15:43
|
On 5/18/06, Sam <sa...@th...> wrote: > Chris, > Thanks alot, your proccess works great. I was just about to give up > on the whole thing, so thanks again. > I'm glad that it worked for you. |
|
From: Sam <sa...@th...> - 2006-05-18 15:30:24
|
Chris,
Thanks alot, your proccess works great. I was just about to give up
on the whole thing, so thanks again.
On May 17, 2006, at 9:33 AM, Chris Allen wrote:
> I have a variation on this that I can share with you soon. Sorry that
> I can't do so now, I'm rushing off to a meeting. Will email later.
>
> -Chris
>
> On 5/17/06, Jan Harmsen <za...@ar...> wrote:
>>
>> Hi Sam,
>>
>> I've been following this thread and remember that I struggled
>> myself quite
>> a bit when trying to get unit testing to work under OSX....
>> I don't have too much time currently, but here's at least a short
>> description how to use Asunit with mtasc under OSX:
>>
>>
>> 1. For displaying the results of the testcases / Sys.println
>> statements use
>> the
>> 'AsUnit Ui.swf' which can be found in the AsUnit-src.zip (or if you
>> installed Asunit,
>> it's under
>> '$HOME/Library/Application Support/Macromedia/Flash
>> 8/en/Configuration/WindowSWF/AsUnit Ui.swf'
>> )
>>
>> Fire this up in a browser window and click the 'Show Sys.println'
>> in the
>> lower
>> left corner, then you'll see the output of any Sys.println
>> statements used
>> in
>> your code. (Make sure Sys.as from the Asunit package is in your
>> classpath)
>>
>>
>> 2. Create a Main class for your unit tests like this one:
>> --------------- SNIP -----------------------------------
>> class MainUnitTests {
>>
>> public static function runUnitTests():Void {
>>
>> var st:SelectedTests = new SelectedTests();
>>
>> }
>> }
>> ---------------- SNAP ---------------------------------
>>
>>
>> 3. Create SelectedTests classes for EACH of your packages
>> Example source folder: src
>> Example package structure: org
>>
>> SelectedTests class in ./src:
>> --------------- SNIP -----------------------------------
>> import com.asunit.framework.*;
>>
>> class SelectedTests extends TestSuite {
>> private var className:String = "SelectedTests";
>>
>> public function SelectedTests() {
>> super();
>> addTest(new org.SelectedTests());
>> }
>> }
>>
>> ---------------- SNAP ---------------------------------
>>
>>
>> SelectedTests class in ./src/org:
>> --------------- SNIP -----------------------------------
>> import com.asunit.framework.*;
>>
>> class org.SelectedTests extends TestSuite {
>> private var className:String = "org.SelectedTests";
>>
>> public function SelectedTests() {
>> super();
>> addTest(new org.MyClassOneTest());
>> //addTest(new org.MyClassTwoTest());
>> }
>> }
>> ---------------- SNAP ---------------------------------
>>
>> where MyClassOneTest and MyClassTwoTest are the Asunit Test Classes
>> containing the unit tests for your classes.
>>
>>
>> 4. In your .swf have the following ActionScript code on a frame
>> AFTER the
>> frame where your classes get imported:
>>
>> --------------- SNIP -----------------------------------
>> import MainUnitTests;
>>
>> MainUnitTests.runUnitTests();
>> ---------------- SNAP ---------------------------------
>>
>> 5. Now compile using mtasc:
>>
>> --------------- SNIP -----------------------------------
>> /usr/local/bin/mtasc -strict -keep -frame 6 -cp /path/to/your/
>> classes -swf
>> to/your/swfFile.swf MainUnitTests
>> ---------------- SNAP ---------------------------------
>>
>> This assumes that your classes get imported at frame 6 of
>> your .swf, you
>> need to set this to the frame
>> where your classes should get imported (after the preloader code).
>>
>>
>> 6. Run your .swf and see the results + Sys.println output in
>> 'AsUnit UI.swf'
>>
>> 7. By commenting / uncommenting the statements in SelectedTests
>> you can
>> quickly exclude / include
>> the TestClasses you want to get executed. Just recompile and run,
>> this will
>> execute the tests.
>>
>>
>> Hope this helps you to get started.....
>> I switched from Flash 8 to Eclipse + FDT (http://
>> fdt.powerflasher.com/)
>> which works really well for me.
>>
>> Best regards,
>>
>> Jan Harmsen
>>
>>
>>
>>
>> On 17-Mai-2006, at 03:19, Sam wrote:
>>
>> Hi Chris,
>>
>> Thanks for your input, I have exhausted trying to figure out the
>> XUL stuff.
>> I would be interested in knowing the process you use when making
>> the test
>> cases by hand. Not specifics on unit testing or anything like
>> that, but
>> after you've built the test how do you run them. The documentation
>> on using
>> just the framework seems, well, non-existant.
>> I am using textmate and the mtasc compiler. Actually I'm using a
>> development
>> process I found here:
>> http://www.unfitforprint.com/articles/2006/01/02/howto-develop-
>> flash-on-mac-osx-with-rake-mtasc-swfmill-and-textmate
>> and I'd love to add testing to the process.
>>
>> Thanks much, any suggestions or tips are appreciated.
>> -Sam
>>
>>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd_______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
>
|
|
From: Chris A. <mrc...@gm...> - 2006-05-17 19:31:01
|
Sam wrote: > > Hi Chris, > > > > Thanks for your input, I have exhausted trying to figure out the XUL st= uff. > > I would be interested in knowing the process you use when making the te= st > > cases by hand. Not specifics on unit testing or anything like that, but > > after you've built the test how do you run them. The documentation on u= sing > > just the framework seems, well, non-existant. > > I am using textmate and the mtasc compiler. Actually I'm using a develo= pment > > process I found here: > > http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash-on= -mac-osx-with-rake-mtasc-swfmill-and-textmate > > and I'd love to add testing to the process. > > > > Thanks much, any suggestions or tips are appreciated. > > -Sam Sam, I know exactly how you feel. It took me a while to figure this out myself. I posted a little description on my blog about how I've set it up using nothing but ActionScript2, MTASC and AS2Ant. You can see that here: http://blog.ff9900.org/?p=3D5 I hope it helps. -Chris |
|
From: Chris A. <mrc...@gm...> - 2006-05-17 13:33:49
|
I have a variation on this that I can share with you soon. Sorry that
I can't do so now, I'm rushing off to a meeting. Will email later.
-Chris
On 5/17/06, Jan Harmsen <za...@ar...> wrote:
>
> Hi Sam,
>
> I've been following this thread and remember that I struggled myself quit=
e
> a bit when trying to get unit testing to work under OSX....
> I don't have too much time currently, but here's at least a short
> description how to use Asunit with mtasc under OSX:
>
>
> 1. For displaying the results of the testcases / Sys.println statements u=
se
> the
> 'AsUnit Ui.swf' which can be found in the AsUnit-src.zip (or if you
> installed Asunit,
> it's under
> '$HOME/Library/Application Support/Macromedia/Flash
> 8/en/Configuration/WindowSWF/AsUnit Ui.swf'
> )
>
> Fire this up in a browser window and click the 'Show Sys.println' in the
> lower
> left corner, then you'll see the output of any Sys.println statements use=
d
> in
> your code. (Make sure Sys.as from the Asunit package is in your classpath=
)
>
>
> 2. Create a Main class for your unit tests like this one:
> --------------- SNIP -----------------------------------
> class MainUnitTests {
>
> public static function runUnitTests():Void {
>
> var st:SelectedTests =3D new SelectedTests();
>
> }
> }
> ---------------- SNAP ---------------------------------
>
>
> 3. Create SelectedTests classes for EACH of your packages
> Example source folder: src
> Example package structure: org
>
> SelectedTests class in ./src:
> --------------- SNIP -----------------------------------
> import com.asunit.framework.*;
>
> class SelectedTests extends TestSuite {
> private var className:String =3D "SelectedTests";
>
> public function SelectedTests() {
> super();
> addTest(new org.SelectedTests());
> }
> }
>
> ---------------- SNAP ---------------------------------
>
>
> SelectedTests class in ./src/org:
> --------------- SNIP -----------------------------------
> import com.asunit.framework.*;
>
> class org.SelectedTests extends TestSuite {
> private var className:String =3D "org.SelectedTests";
>
> public function SelectedTests() {
> super();
> addTest(new org.MyClassOneTest());
> //addTest(new org.MyClassTwoTest());
> }
> }
> ---------------- SNAP ---------------------------------
>
> where MyClassOneTest and MyClassTwoTest are the Asunit Test Classes
> containing the unit tests for your classes.
>
>
> 4. In your .swf have the following ActionScript code on a frame AFTER the
> frame where your classes get imported:
>
> --------------- SNIP -----------------------------------
> import MainUnitTests;
>
> MainUnitTests.runUnitTests();
> ---------------- SNAP ---------------------------------
>
> 5. Now compile using mtasc:
>
> --------------- SNIP -----------------------------------
> /usr/local/bin/mtasc -strict -keep -frame 6 -cp /path/to/your/classes -s=
wf
> to/your/swfFile.swf MainUnitTests
> ---------------- SNAP ---------------------------------
>
> This assumes that your classes get imported at frame 6 of your .swf, you
> need to set this to the frame
> where your classes should get imported (after the preloader code).
>
>
> 6. Run your .swf and see the results + Sys.println output in 'AsUnit UI.s=
wf'
>
> 7. By commenting / uncommenting the statements in SelectedTests you can
> quickly exclude / include
> the TestClasses you want to get executed. Just recompile and run, this wi=
ll
> execute the tests.
>
>
> Hope this helps you to get started.....
> I switched from Flash 8 to Eclipse + FDT (http://fdt.powerflasher.com/)
> which works really well for me.
>
> Best regards,
>
> Jan Harmsen
>
>
>
>
> On 17-Mai-2006, at 03:19, Sam wrote:
>
> Hi Chris,
>
> Thanks for your input, I have exhausted trying to figure out the XUL stuf=
f.
> I would be interested in knowing the process you use when making the test
> cases by hand. Not specifics on unit testing or anything like that, but
> after you've built the test how do you run them. The documentation on usi=
ng
> just the framework seems, well, non-existant.
> I am using textmate and the mtasc compiler. Actually I'm using a developm=
ent
> process I found here:
> http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash-on-m=
ac-osx-with-rake-mtasc-swfmill-and-textmate
> and I'd love to add testing to the process.
>
> Thanks much, any suggestions or tips are appreciated.
> -Sam
>
>
|
|
From: Jan H. <za...@ar...> - 2006-05-17 08:23:19
|
Hi Sam,
I've been following this thread and remember that I struggled myself
quite
a bit when trying to get unit testing to work under OSX....
I don't have too much time currently, but here's at least a short
description how to use Asunit with mtasc under OSX:
1. For displaying the results of the testcases / Sys.println
statements use the
'AsUnit Ui.swf' which can be found in the AsUnit-src.zip (or if you
installed Asunit,
it's under
'$HOME/Library/Application Support/Macromedia/Flash 8/en/
Configuration/WindowSWF/AsUnit Ui.swf'
)
Fire this up in a browser window and click the 'Show Sys.println' in
the lower
left corner, then you'll see the output of any Sys.println statements
used in
your code. (Make sure Sys.as from the Asunit package is in your
classpath)
2. Create a Main class for your unit tests like this one:
--------------- SNIP -----------------------------------
class MainUnitTests {
public static function runUnitTests():Void {
var st:SelectedTests = new SelectedTests();
}
}
---------------- SNAP ---------------------------------
3. Create SelectedTests classes for EACH of your packages
Example source folder: src
Example package structure: org
SelectedTests class in ./src:
--------------- SNIP -----------------------------------
import com.asunit.framework.*;
class SelectedTests extends TestSuite {
private var className:String = "SelectedTests";
public function SelectedTests() {
super();
addTest(new org.SelectedTests());
}
}
---------------- SNAP ---------------------------------
SelectedTests class in ./src/org:
--------------- SNIP -----------------------------------
import com.asunit.framework.*;
class org.SelectedTests extends TestSuite {
private var className:String = "org.SelectedTests";
public function SelectedTests() {
super();
addTest(new org.MyClassOneTest());
//addTest(new org.MyClassTwoTest());
}
}
---------------- SNAP ---------------------------------
where MyClassOneTest and MyClassTwoTest are the Asunit Test Classes
containing the unit tests for your classes.
4. In your .swf have the following ActionScript code on a frame AFTER
the
frame where your classes get imported:
--------------- SNIP -----------------------------------
import MainUnitTests;
MainUnitTests.runUnitTests();
---------------- SNAP ---------------------------------
5. Now compile using mtasc:
--------------- SNIP -----------------------------------
/usr/local/bin/mtasc -strict -keep -frame 6 -cp /path/to/your/
classes -swf to/your/swfFile.swf MainUnitTests
---------------- SNAP ---------------------------------
This assumes that your classes get imported at frame 6 of your .swf,
you need to set this to the frame
where your classes should get imported (after the preloader code).
6. Run your .swf and see the results + Sys.println output in 'AsUnit
UI.swf'
7. By commenting / uncommenting the statements in SelectedTests you
can quickly exclude / include
the TestClasses you want to get executed. Just recompile and run,
this will execute the tests.
Hope this helps you to get started.....
I switched from Flash 8 to Eclipse + FDT (http://
fdt.powerflasher.com/) which works really well for me.
Best regards,
Jan Harmsen
On 17-Mai-2006, at 03:19, Sam wrote:
> Hi Chris,
> Thanks for your input, I have exhausted trying to figure out the
> XUL stuff.
> I would be interested in knowing the process you use when making
> the test cases by hand. Not specifics on unit testing or anything
> like that, but after you've built the test how do you run them. The
> documentation on using just the framework seems, well, non-existant.
> I am using textmate and the mtasc compiler. Actually I'm using a
> development process I found here:
> http://www.unfitforprint.com/articles/2006/01/02/howto-develop-
> flash-on-mac-osx-with-rake-mtasc-swfmill-and-textmate
> and I'd love to add testing to the process.
>
> Thanks much, any suggestions or tips are appreciated.
> -Sam
>
|
|
From: Sam <sa...@th...> - 2006-05-17 01:19:37
|
Hi Chris, Thanks for your input, I have exhausted trying to figure out the XUL stuff. I would be interested in knowing the process you use when making the test cases by hand. Not specifics on unit testing or anything like that, but after you've built the test how do you run them. The documentation on using just the framework seems, well, non-existant. I am using textmate and the mtasc compiler. Actually I'm using a development process I found here: http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash- on-mac-osx-with-rake-mtasc-swfmill-and-textmate and I'd love to add testing to the process. Thanks much, any suggestions or tips are appreciated. -Sam On May 15, 2006, at 10:54 AM, Chris Allen wrote: > Hey Sam, > > I tried messing around with this at one point and noticed that the > structure of an XUL application on OSX is different than on Windows. > It also requires that you make an document bundle, in order to double > click on it. Here is some information that might be useful: > http://wiki.mozilla.org/XUL:XUL_Application_Packaging. There is also a > tremendous amount of documentation on the subject here: > http://www.mozilla.org/projects/xul/ > > I was never able to get it to work on a Mac though, so if you manage > to figure it out, please let us know. I've been pretty happy just > making my test cases by hand, but would love to see what this XUL app > does. > > Good luck. > > -Chris > > On 5/15/06, Sam <sa...@th...> wrote: >> >> Hello, >> I've been trying to set up XUL UI on OS X with no luck. >> >> The MAC-README says: >> 1) Download the mac release of xulrunner from: >> http://developer.mozilla.org/en/docs/XULRunner >> 2) Unpack dmg archive from here into a new folder named >> "xulrunner", so that >> this directory looks like: >> >> I don't understand #2. >> When I unpack the dmg the result is xulrunner-1.9a1.en-US.mac.pkg. >> Which will install xulrunner in >> /Library/Frameworks/XUL.framework/ >> >> Is number 2 saying that I should put xulrunner-1.9a1.en-US.mac.pkg >> in a >> folder named xulrunner? >> >> Thanks for any help >> >> >> > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd_______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > |
|
From: Luke B. <lb...@gm...> - 2006-05-15 16:52:34
|
I'm guessing that .pkg is some kind of mac zip file. Is there a way to further "unpack" it so that you have a series of directories? If so, then there should be a xulrunner folder from our distribution that goes inside of your installed XulRunner location... Please let me know if that doesn't work for you as some folks have offered to get more complete mac installer going and this would probably be a good time to get that published. Thanks, Luke Bayes www.asunit.org |
|
From: Chris A. <mrc...@gm...> - 2006-05-15 14:54:54
|
Hey Sam, I tried messing around with this at one point and noticed that the structure of an XUL application on OSX is different than on Windows. It also requires that you make an document bundle, in order to double click on it. Here is some information that might be useful: http://wiki.mozilla.org/XUL:XUL_Application_Packaging. There is also a tremendous amount of documentation on the subject here: http://www.mozilla.org/projects/xul/ I was never able to get it to work on a Mac though, so if you manage to figure it out, please let us know. I've been pretty happy just making my test cases by hand, but would love to see what this XUL app does. Good luck. -Chris On 5/15/06, Sam <sa...@th...> wrote: > > Hello, > I've been trying to set up XUL UI on OS X with no luck. > > The MAC-README says: > 1) Download the mac release of xulrunner from: > http://developer.mozilla.org/en/docs/XULRunner > 2) Unpack dmg archive from here into a new folder named "xulrunner", so t= hat > this directory looks like: > > I don't understand #2. > When I unpack the dmg the result is xulrunner-1.9a1.en-US.mac.pkg. > Which will install xulrunner in > /Library/Frameworks/XUL.framework/ > > Is number 2 saying that I should put xulrunner-1.9a1.en-US.mac.pkg in a > folder named xulrunner? > > Thanks for any help > > > |
|
From: Sam L. <sa...@th...> - 2006-05-15 14:03:06
|
Hello, I've been trying to set up XUL UI on OS X with no luck. The MAC-README says: 1) Download the mac release of xulrunner from: http://developer.mozilla.org/en/docs/XULRunner 2) Unpack dmg archive from here into a new folder named "xulrunner", so that this directory looks like: I don't understand #2. When I unpack the dmg the result is xulrunner-1.9a1.en-US.mac.pkg. Which will install xulrunner in /Library/Frameworks/XUL.framework/ Is number 2 saying that I should put xulrunner-1.9a1.en-US.mac.pkg in a folder named xulrunner? Thanks for any help |
|
From: Sam <sa...@th...> - 2006-05-15 13:23:44
|
Hello, I've been trying to set up XUL UI on OS X with no luck. The MAC-README says: 1) Download the mac release of xulrunner from: http:// developer.mozilla.org/en/docs/XULRunner 2) Unpack dmg archive from here into a new folder named "xulrunner", so that this directory looks like: I don't understand #2. When I unpack the dmg the result is xulrunner-1.9a1.en-US.mac.pkg. Which will install xulrunner in /Library/Frameworks/XUL.framework/ Is number 2 saying that I should put xulrunner-1.9a1.en-US.mac.pkg in a folder named xulrunner? Thanks for any help |
|
From: Johannes N. <joh...@gm...> - 2006-05-10 08:52:46
|
i use a set of ant and python scripts i wrote for work, peter hall modified them so that you can exclude certain folders. http://www.lennel.org/blog/2006/02/27/building-unit-tests-in-eclipse-from-a= n-ant-script-for-asunit/ with asunit there comes some xul stuff as well, search the mailing list for refrences to those On 5/10/06, Woodage, Alison <ali...@de...> wrote: > > Thanks everyone for the references and starting points. > Johannes, > can you give me some idea of how you go about using automatic ways to > create your test shells? > > Alison > > ________________________________ > > From: asu...@li... on behalf of Johannes Nel > Sent: Tue 5/9/2006 6:26 PM > To: asu...@li... > Subject: Re: [Asunit-users] a true beginner... > > > unit testing was a pain for me in the begining, i hated writing proper > tests, always slacked and paid the price for it later. when i got into un= it > testing full-on i found my life became so much easier when bugs were fill= ed > against me. > you get a bug, follow the steps to recreate it, notice a new edge case, > write it up and voila you have broken tests. > also once you have several people working on a project with a proper > continues integration system, you find yourself in a world where if any t= est > breaks with checked in code, everybody gets notified. very few things sli= p > underneath the radar like that... > > i am a lazy sod however so i use automated ways of creating my test shell= s > and the like, i would advice you to do the same. > > > On 5/9/06, Johannes Nel <joh...@gm...> wrote: > > i left it there, consider it a gift from our kind employers... ;) > > > > On 5/9/06, Peter Hall <pet...@gm... > wrote: > > I just found that Kent Beck book in my apartment! Not sure > exactly where it came from. Anyway... it looks pretty good! > > > Peter > > > > > On 5/9/06, Luke Bayes <lb...@gm...> wrote: > > This is a great question! > > The single best source that I've found is the book= , > "Test Driven Development by Example" from Kent Beck. > > This book really cleared up a lot of questions for > Ali and I. > > I also got a lot of inspiration from the Gang of > Four Design Patterns book - this book helped me see the underlying > (testable) object structures that are behind gui systems... > > > Anyone else? > > > > Luke Bayes > www.asunit.org <http://www.asunit.org/> > > > > > > > > -- > j:pn > http://www.lennel.org <http://www.lennel.org/> > > > > > > -- > j:pn > http://www.lennel.org > > ********************************************************************** > This message is intended for the addressee named and may contain > privileged information or confidential information or both. If you > are not the intended recipient please delete it and notify the sender. > ********************************************************************** > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > -- j:pn http://www.lennel.org |
|
From: Woodage, A. <ali...@de...> - 2006-05-09 23:09:44
|
Thanks everyone for the references and starting points. Johannes, can you give me some idea of how you go about using automatic ways to cre= ate your test shells? =20 Alison ________________________________ From: asu...@li... on behalf of Johannes Nel Sent: Tue 5/9/2006 6:26 PM To: asu...@li... Subject: Re: [Asunit-users] a true beginner... unit testing was a pain for me in the begining, i hated writing proper te= sts, always slacked and paid the price for it later. when i got into unit= =20testing full-on i found my life became so much easier when bugs were f= illed against me.=20 you get a bug, follow the steps to recreate it, notice a new edge case, w= rite it up and voila you have broken tests.=20 also once you have several people working on a project with a proper cont= inues integration system, you find yourself in a world where if any test = breaks with checked in code, everybody gets notified. very few things sli= p underneath the radar like that...=20 =20 i am a lazy sod however so i use automated ways of creating my test shell= s and the like, i would advice you to do the same. =20 On 5/9/06, Johannes Nel <joh...@gm...> wrote:=20 =09i left it there, consider it a gift from our kind employers... ;) =09 =09 =09 =09On 5/9/06, Peter Hall <pet...@gm... > wrote:=20 =09 I just found that Kent Beck book in my apartment! Not sure exactly wh= ere it came from. Anyway... it looks pretty good! =09 =20 =09=09 =09 Peter =09=09 =09=09 =09=09 =09=09 =09 On 5/9/06, Luke Bayes <lb...@gm...> wrote:=20 =09 This is a great question! =09 =09 =09 The single best source that I've found is the book, "Test Driven Dev= elopment by Example" from Kent Beck. =09 =09 =09 This book really cleared up a lot of questions for Ali and I.=20 =09 =09 =09 I also got a lot of inspiration from the Gang of Four Design Pattern= s book - this book helped me see the underlying (testable) object structu= res that are behind gui systems... =09 =09 =09 =09 =09 Anyone else? =09 =20 =09 =09 =09 =09 =09 Luke Bayes=20 =09 www.asunit.org <http://www.asunit.org/>=20 =09 =09 =09 =09 =09--=20 =09j:pn=20 =09http://www.lennel.org <http://www.lennel.org/>=20 =09 --=20 j:pn=20 http://www.lennel.org ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** |
|
From: Johannes N. <joh...@gm...> - 2006-05-09 08:27:04
|
unit testing was a pain for me in the begining, i hated writing proper tests, always slacked and paid the price for it later. when i got into unit testing full-on i found my life became so much easier when bugs were filled against me. you get a bug, follow the steps to recreate it, notice a new edge case, write it up and voila you have broken tests. also once you have several people working on a project with a proper continues integration system, you find yourself in a world where if any tes= t breaks with checked in code, everybody gets notified. very few things slip underneath the radar like that... i am a lazy sod however so i use automated ways of creating my test shells and the like, i would advice you to do the same. On 5/9/06, Johannes Nel <joh...@gm...> wrote: > > i left it there, consider it a gift from our kind employers... ;) > > > On 5/9/06, Peter Hall <pet...@gm...> wrote: > > > > I just found that Kent Beck book in my apartment! Not sure exactly wher= e > > it came from. Anyway... it looks pretty good! > > > > > > Peter > > > > > > > > On 5/9/06, Luke Bayes <lb...@gm...> wrote: > > > > > > This is a great question! > > > > > > The single best source that I've found is the book, "Test Driven > > > Development by Example" from Kent Beck. > > > > > > This book really cleared up a lot of questions for Ali and I. > > > > > > I also got a lot of inspiration from the Gang of Four Design Patterns > > > book - this book helped me see the underlying (testable) object struc= tures > > > that are behind gui systems... > > > > > > > > > Anyone else? > > > > > > > > > > > > Luke Bayes > > > www.asunit.org > > > > > > > > > > > -- > j:pn > http://www.lennel.org > -- j:pn http://www.lennel.org |
|
From: Johannes N. <joh...@gm...> - 2006-05-09 08:21:15
|
i left it there, consider it a gift from our kind employers... ;) On 5/9/06, Peter Hall <pet...@gm...> wrote: > > I just found that Kent Beck book in my apartment! Not sure exactly where > it came from. Anyway... it looks pretty good! > > > Peter > > > > On 5/9/06, Luke Bayes <lb...@gm...> wrote: > > > > This is a great question! > > > > The single best source that I've found is the book, "Test Driven > > Development by Example" from Kent Beck. > > > > This book really cleared up a lot of questions for Ali and I. > > > > I also got a lot of inspiration from the Gang of Four Design Patterns > > book - this book helped me see the underlying (testable) object structu= res > > that are behind gui systems... > > > > > > Anyone else? > > > > > > > > Luke Bayes > > www.asunit.org > > > > > -- j:pn http://www.lennel.org |
|
From: Peter H. <pet...@gm...> - 2006-05-09 01:03:37
|
I just found that Kent Beck book in my apartment! Not sure exactly where it came from. Anyway... it looks pretty good! Peter On 5/9/06, Luke Bayes <lb...@gm...> wrote: > > This is a great question! > > The single best source that I've found is the book, "Test Driven > Development by Example" from Kent Beck. > > This book really cleared up a lot of questions for Ali and I. > > I also got a lot of inspiration from the Gang of Four Design Patterns boo= k > - this book helped me see the underlying (testable) object structures tha= t > are behind gui systems... > > > Anyone else? > > > Luke Bayes > www.asunit.org > > |
|
From: Luke B. <lb...@gm...> - 2006-05-09 00:44:16
|
This is a great question! The single best source that I've found is the book, "Test Driven Developmen= t by Example" from Kent Beck. This book really cleared up a lot of questions for Ali and I. I also got a lot of inspiration from the Gang of Four Design Patterns book = - this book helped me see the underlying (testable) object structures that ar= e behind gui systems... Anyone else? Luke Bayes www.asunit.org |
|
From: Woodage, A. <ali...@de...> - 2006-05-08 23:12:25
|
Hi, =20 This is probably as newbie as they come......I'm being strongly encouraged to implement Unit Testing for the Flash development work we do. I've just come across AsUnit Ui and from what I can see it looks like it is an ideal tool that we could use. But I've only got a vague understanding of Unit Testing is, and I've got no real idea how to implement it, or how to use/implement AsUnit Ui. =20 =20 Can anyone point me in the right direction? Is anyone interested in sharing their experiences in how they started Unit testing? =20 =20 Thanks =20 =20 Alison Woodage Lead Educational Programmer Centre for Learning Innovation 51 Wentworth Ave Strathfield 2135 02 9715 8389 =20 ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** |
|
From: Chris A. <mrc...@gm...> - 2006-05-08 20:08:35
|
Hi,
I was just running some tests with ASUnit and found that the
assertNull() method wasn't returning what I expected. For example,
using the 2.5 version of ASUnit the following test will fail:
public function testJunk():Void
=09{
=09=09assertNull(undefined);=09
=09}
After taking a look at the Assert class I noticed that you are using
strict comparisons (=3D=3D=3D), thus making undefined and null not the same
thing. Then I noticed that you indeed have the assertUndefined()
method as well. Well, I guess this is a case where someone might
actually care to know exactly if it's one or the other. In most cases
I would venture that it doesn't really matter all that much which one
it is. For example in statements like:
if (myObject) { doSomthing() }
it doesn't make a difference whether it's null or undefined. We simply
care about the value, not the type.
So, I propose that you add another assert to the Assert class to
address this. Perhaps assertNullValue() and assertNotNullValue().
Or, make the two assertions less strict.
I was just chatting with Keith Peters about this and we were wondering
how this all pans out in ActionScript 3. Well, it turns out if you try
the trace(undefined =3D=3D null); it actually comes up with a compiler
warning and finally evaluates to true. Here's the warning:
"Variables of type Null can not be undefined. undefined will be type
coerced to Null before comparison."
So this seems to mean that declared variables will never be undefined,
but possibly null. And the compiler likes to enforce that it never
happens with these nice warnings.
Please let me know your thoughts on this and I will currently add the
assertNullValue() and assertNotNullValue() to my version of ASUnit 2.5
for now.
Anyway, thanks for creating ASUnit; it's certainly been a really helpful to=
ol.
-Chris
|
|
From: Luke B. <lb...@gm...> - 2006-05-05 17:19:25
|
Hey Glen, Thanks so MUCH! I got your fix into svn and published to our site. Please feel free to let us know if you have any questions. Thanks, Luke www.asunit.org |