You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(8) |
Apr
(7) |
May
|
Jun
|
Jul
(20) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
---|
From: Wolfgang E. <ed...@ge...> - 2003-09-18 12:38:59
|
test-please ignore |
From: Joseph B. <jba...@co...> - 2003-07-23 03:51:33
|
Hi Dennis: On Tuesday, July 22, 2003, at 08:25 AM, Dennis Smith wrote: > I am interested in how people are using SUnit tests .. > - one test class per class? > - one test class per sub-system? > - whatever seems reasonable? Here what we (at WAMU) do: - One test per class - Tests in their own Application(ENVY) / Package(StORE) - In GemStone, the SUnit tests are in their own GemStone namespace/SymbolDictionary - In GemStone, we drive the tests from workspaces or topaz - In the client, we have serveral tools, including a custom one that Sames built when he worked on our project (way before my time) I work almost exclusively in GemStone, I probably have different needs than a more client-centric engineer. Hope that helps!! > > - I am using VW, so have class categories and namespaces, are > people: > - keeping test classes with the classes being tested? > - in a separate category? package? bundle? namespace? > > I have my own thoughts, but since I have exactly 3 test classes as of > now, my thoughts > have little basis in experience :-) > > -- > Dennis Smith quenton@CherniakSoftware.com > Cherniak Software Development Corporation +1 905.771.7011 > 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 > Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > SUnit-news mailing list > SUn...@li... > https://lists.sourceforge.net/lists/listinfo/sunit-news > > Thanks!! Joseph Bacanskas [|] --- I use Smalltalk. My amp goes to eleven. |
From: Jarvis, R. P. (Contingent) <Ja...@ti...> - 2003-07-22 16:04:37
|
Typically I'll have one test class per class, with one or more unit tests per method. To test interactions between classes I'll add additional test classes; ditto for applications. Bob Jarvis Compuware @ Timken > -----Original Message----- > From: Dennis Smith [mailto:dennis@CherniakSoftware.com] > Sent: Tuesday, July 22, 2003 11:26 AM > To: sun...@li... > Subject: [SUnit-news] Question on Usage ... > > > I am interested in how people are using SUnit tests .. > - one test class per class? > - one test class per sub-system? > - whatever seems reasonable? > > - I am using VW, so have class categories and namespaces, > are people: > - keeping test classes with the classes being tested? > - in a separate category? package? bundle? namespace? > > I have my own thoughts, but since I have exactly 3 test classes as of > now, my thoughts > have little basis in experience :-) > > -- > Dennis Smith quenton@CherniakSoftware.com > Cherniak Software Development Corporation +1 905.771.7011 > 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 > Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual > machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > SUnit-news mailing list > SUn...@li... > https://lists.sourceforge.net/lists/listinfo/sunit-news > |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 15:53:33
|
I am interested in how people are using SUnit tests .. - one test class per class? - one test class per sub-system? - whatever seems reasonable? - I am using VW, so have class categories and namespaces, are people: - keeping test classes with the classes being tested? - in a separate category? package? bundle? namespace? I have my own thoughts, but since I have exactly 3 test classes as of now, my thoughts have little basis in experience :-) -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 14:43:12
|
Joseph Pelrine wrote: > At 15:36 22.07.2003, you wrote: > >> Yes, Jeff Odell is the author of SUnitBrowser. Sadly, it hasn't been >> ported to VW yet - maybe you've got a few spare minutes..? :-) >> >> I don't know what the VW version of TestRunner is like but I've >> tweaked the Dolphin version before and it wasn't hard to figure out. >> I expect you can hack up what you need pretty quickly. > > > Both Jeff and I had done some work on porting his browser, but we > stopped when Cincom quite clearly told us that they were not > interested in having such a browser around, and that they would > support the stuff being built into the VW browser...No use wasting > time when there are so many other things one can do :-) I suppose they might complain about something that browsed methods, but the rest of it is really nothing to do with CINCOM, and should not be part of the VW browser anyway -- seems a bit silly. > > > Cheers > > -- > Joseph Pelrine [ | ] > MetaProg GmbH > Email: jpe...@me... > Web: http://www.metaprog.com <http://www.metaprog.com/> > > "If you don't live on the edge, you're taking up too much space" - > Doug Robinson > -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Joseph P. <jpe...@ac...> - 2003-07-22 14:10:24
|
At 15:36 22.07.2003, you wrote: >Yes, Jeff Odell is the author of SUnitBrowser. Sadly, it hasn't been >ported to VW yet - maybe you've got a few spare minutes..? :-) > >I don't know what the VW version of TestRunner is like but I've tweaked >the Dolphin version before and it wasn't hard to figure out. I expect you >can hack up what you need pretty quickly. Both Jeff and I had done some work on porting his browser, but we stopped when Cincom quite clearly told us that they were not interested in having such a browser around, and that they would support the stuff being built into the VW browser...No use wasting time when there are so many other things one can do :-) Cheers -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |
From: Jarvis, R. P. (Contingent) <Ja...@ti...> - 2003-07-22 13:36:45
|
Yes, Jeff Odell is the author of SUnitBrowser. Sadly, it hasn't been ported to VW yet - maybe you've got a few spare minutes..? :-) I don't know what the VW version of TestRunner is like but I've tweaked the Dolphin version before and it wasn't hard to figure out. I expect you can hack up what you need pretty quickly. Bob Jarvis Compuware @ Timken -----Original Message----- From: Dennis Smith [mailto:dennis@CherniakSoftware.com] Sent: Tuesday, July 22, 2003 9:07 AM To: sun...@li... Subject: Re: [SUnit-news] Ability to run tests multiple times ... Jarvis, Robert P. (Contingent) wrote: So what's needed is the ability to select a bunch of tests, hit a button or select a menu item (e.g. "Run Multiple Times..."), have a dialog pop up that allows the user to enter a repeat count, and then have the selected tests run multiple times. Something like that yes. Which UI are you using for running your tests? (SUnitBrowser? TestRunner?) And are you using VisualWorks, VAST, Dolphin, Squeak, or some other Smalltalk implementation? TestRunner (What is SUnitBorwser, is that Jeff Odell's? I don't see it available for other than Dolphin, or did I miss something?). VisualWorks (5i.4 right now because of Gemstone debugger). Bob Jarvis Compuware @ Timken -----Original Message----- From: Dennis Smith [ mailto:dennis@CherniakSoftware.com <mailto:dennis@CherniakSoftware.com> ] Sent: Tuesday, July 22, 2003 8:19 AM To: sun...@li... <mailto:sun...@li...> Subject: Re: [SUnit-news] Ability to run tests multiple times ... Yes one could do that for any individual test, but if one has 100's it would seem useful to be able to set for 1000 runs and go home for the night?? Jarvis, Robert P. (Contingent) wrote: How about putting a loop in the body of the test, i.e. testSeveralTimes 100 timesRepeat: [ <test code here> ] ? Just a thought. Bob Jarvis Compuware @ Timken -----Original Message----- From: Dennis Smith [ mailto:dennis@CherniakSoftware.com <mailto:dennis@CherniakSoftware.com> ] Sent: Tuesday, July 22, 2003 7:42 AM To: sun...@li... <mailto:sun...@li...> Subject: [SUnit-news] Ability to run tests multiple times ... In my first use of SUnit, I ran into a case where about every 20 or 30 runs of a test it failed. It was a valid failure, but hitting the Run button 100 times (and am I sure at 100??) to see if its fixed is a bit much. How about the ability to set a count for repeated runs? -- Dennis Smith quenton@CherniakSoftware.com <mailto:quenton@CherniakSoftware.com> Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com <http://www.CherniakSoftware.com> ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 <http://www.vmware.com/wl/offer/345/0> _______________________________________________ SUnit-news mailing list SUn...@li... <mailto:SUn...@li...> https://lists.sourceforge.net/lists/listinfo/sunit-news <https://lists.sourceforge.net/lists/listinfo/sunit-news> ********************************************************************** This message and any attachments are intended for the individual or entity named above. If you are not the intended recipient, please do not forward, copy, print, use or disclose this communication to others; also please notify the sender by replying to this message, and then delete it from your system. The Timken Company ********************************************************************** ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 <http://www.vmware.com/wl/offer/345/0> _______________________________________________ SUnit-news mailing list SUn...@li... <mailto:SUn...@li...> https://lists.sourceforge.net/lists/listinfo/sunit-news <https://lists.sourceforge.net/lists/listinfo/sunit-news> -- Dennis Smith quenton@CherniakSoftware.com <mailto:quenton@CherniakSoftware.com> Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com <http://www.CherniakSoftware.com> -- Dennis Smith quenton@CherniakSoftware.com <mailto:quenton@CherniakSoftware.com> Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com <http://www.CherniakSoftware.com> |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 13:21:50
|
Joseph Pelrine wrote: > At 15:06 22.07.2003, Dennis Smith wrote: > > >> Jarvis, Robert P. (Contingent) wrote: >> >>> So what's needed is the ability to select a bunch of tests, hit a >>> button or select a menu item (e.g. "Run Multiple Times..."), have a >>> dialog pop up that allows the user to enter a repeat count, and then >>> have the selected tests run multiple times. >> >> Something like that yes. >> >>> >>> Which UI are you using for running your tests? (SUnitBrowser? >>> TestRunner?) And are you using VisualWorks, VAST, Dolphin, Squeak, >>> or some other Smalltalk implementation? >> >> TestRunner (What is SUnitBorwser, is that Jeff Odell's? I don't see >> it available for other than Dolphin, or did I miss something?). > > > Jeff's browser is only available for VA and Dolphin. Too bad -- for now I only have a few (3) test classes, so TestRunner is fine, but if I get 100+ I might want something else. > > >> VisualWorks (5i.4 right now because of Gemstone debugger). > > > I see. I never ported SUnit 3.1 to VW 5i. Shouldn't be difficult, > tho.You might want to ping Niall Ross, who probably already has it... Its fine -- there are not that many differences (a few in UI's) for VW5i.x -- 3.1 just runs in it, nor problems. > > > Cheers > > -- > Joseph Pelrine [ | ] > MetaProg GmbH > Email: jpe...@me... > Web: http://www.metaprog.com <http://www.metaprog.com/> > > "If you don't live on the edge, you're taking up too much space" - > Doug Robinson > -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Joseph P. <jpe...@ac...> - 2003-07-22 13:13:18
|
At 15:06 22.07.2003, Dennis Smith wrote: >Jarvis, Robert P. (Contingent) wrote: >>So what's needed is the ability to select a bunch of tests, hit a button >>or select a menu item (e.g. "Run Multiple Times..."), have a dialog pop >>up that allows the user to enter a repeat count, and then have the >>selected tests run multiple times. >Something like that yes. >> >>Which UI are you using for running your >>tests? (SUnitBrowser? TestRunner?) And are you using VisualWorks, >>VAST, Dolphin, Squeak, or some other Smalltalk implementation? >TestRunner (What is SUnitBorwser, is that Jeff Odell's? I don't see it >available for other than Dolphin, or did I miss something?). Jeff's browser is only available for VA and Dolphin. >VisualWorks (5i.4 right now because of Gemstone debugger). I see. I never ported SUnit 3.1 to VW 5i. Shouldn't be difficult, tho.You might want to ping Niall Ross, who probably already has it... Cheers -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 13:06:42
|
Jarvis, Robert P. (Contingent) wrote: > So what's needed is the ability to select a bunch of tests, hit a > button or select a menu item (e.g. "Run Multiple Times..."), have a > dialog pop up that allows the user to enter a repeat count, and then > have the selected tests run multiple times. Something like that yes. > > Which UI are you using for running your tests? (SUnitBrowser? > TestRunner?) And are you using VisualWorks, VAST, Dolphin, Squeak, > or some other Smalltalk implementation? TestRunner (What is SUnitBorwser, is that Jeff Odell's? I don't see it available for other than Dolphin, or did I miss something?). VisualWorks (5i.4 right now because of Gemstone debugger). > Bob Jarvis > Compuware @ Timken > > -----Original Message----- > *From:* Dennis Smith [mailto:dennis@CherniakSoftware.com] > *Sent:* Tuesday, July 22, 2003 8:19 AM > *To:* sun...@li... > *Subject:* Re: [SUnit-news] Ability to run tests multiple times ... > > Yes one could do that for any individual test, but if one has > 100's it would seem useful to > be able to set for 1000 runs and go home for the night?? > > Jarvis, Robert P. (Contingent) wrote: > >>How about putting a loop in the body of the test, i.e. >> >>testSeveralTimes >> 100 timesRepeat: [ <test code here> ] >> >>? >> >>Just a thought. >> >>Bob Jarvis >>Compuware @ Timken >> >> >> >>>-----Original Message----- >>>From: Dennis Smith [mailto:dennis@CherniakSoftware.com] >>>Sent: Tuesday, July 22, 2003 7:42 AM >>>To: sun...@li... >>>Subject: [SUnit-news] Ability to run tests multiple times ... >>> >>> >>>In my first use of SUnit, I ran into a case where about every >>>20 or 30 >>>runs of a test >>>it failed. It was a valid failure, but hitting the Run >>>button 100 times >>>(and am I sure at 100??) >>>to see if its fixed is a bit much. >>> >>>How about the ability to set a count for repeated runs? >>> >>>-- >>>Dennis Smith quenton@CherniakSoftware.com >>>Cherniak Software Development Corporation +1 905.771.7011 >>>400-10 Commerce Valley Dr E Fax: +1 905.771.6288 >>>Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: VM Ware >>>With VMware you can run multiple operating systems on a >>>single machine. >>>WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual >>>machines at the >>>same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >>>_______________________________________________ >>>SUnit-news mailing list >>>SUn...@li... >>>https://lists.sourceforge.net/lists/listinfo/sunit-news >>> >>> >>> >> >> >>********************************************************************** >>This message and any attachments are intended for the >>individual or entity named above. If you are not the intended >>recipient, please do not forward, copy, print, use or disclose this >>communication to others; also please notify the sender by >>replying to this message, and then delete it from your system. >> >>The Timken Company >>********************************************************************** >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: VM Ware >>With VMware you can run multiple operating systems on a single machine. >>WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the >>same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >>_______________________________________________ >>SUnit-news mailing list >>SUn...@li... >>https://lists.sourceforge.net/lists/listinfo/sunit-news >> >> > >-- >Dennis Smith quenton@CherniakSoftware.com >Cherniak Software Development Corporation +1 905.771.7011 >400-10 Commerce Valley Dr E Fax: +1 905.771.6288 >Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com > -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Joseph P. <jpe...@ac...> - 2003-07-22 12:59:06
|
At 14:51 22.07.2003, you wrote: >So what's needed is the ability to select a bunch of tests, hit a button >or select a menu item (e.g. "Run Multiple Times..."), have a dialog pop up >that allows the user to enter a repeat count, and then have the selected >tests run multiple times. > >Which UI are you using for running your >tests? (SUnitBrowser? TestRunner?) And are you using VisualWorks, VAST, >Dolphin, Squeak, or some other Smalltalk implementation? You're right; this is essentially a UI/driver question, and not a problem with the basic SUnit framework. I even think that Jeff Odell's SUnitBrowser supports running tests multiple times, enabling profiling etc. What I'd recommend you look at though, are the #assert:description:resumable: variants in TestCase. First off, using description strings will help you with debugging when doing long test runs. Secondly, using ResumableTestFailures together with the logging facilities will help you set things up so that not everything breaks down in the middle of an overnight test run. Please ask if you need more information, examples or clarification. All these questions serve as input to documentation... Cheers Joseph >Bob Jarvis >Compuware @ Timken >-----Original Message----- >From: Dennis Smith [mailto:dennis@CherniakSoftware.com] >Sent: Tuesday, July 22, 2003 8:19 AM >To: sun...@li... >Subject: Re: [SUnit-news] Ability to run tests multiple times ... > >Yes one could do that for any individual test, but if one has 100's it >would seem useful to >be able to set for 1000 runs and go home for the night?? > >Jarvis, Robert P. (Contingent) wrote: >> >>How about putting a loop in the body of the test, i.e. >> >> >>testSeveralTimes >> >> 100 timesRepeat: [ <test code here> ] >> >> >>? >> >> >>Just a thought. >> >> >>Bob Jarvis >> >>Compuware @ Timken >> >> >> >>> >>>-----Original Message----- >>> >>>From: Dennis Smith >>>[<mailto:dennis@CherniakSoftware.com>mailto:dennis@CherniakSoftware.com] >>> >>>Sent: Tuesday, July 22, 2003 7:42 AM >>> >>>To: >>><mailto:sun...@li...>sun...@li... >>> >>>Subject: [SUnit-news] Ability to run tests multiple times ... >>> >>> >>> >>>In my first use of SUnit, I ran into a case where about every >>> >>>20 or 30 >>> >>>runs of a test >>> >>>it failed. It was a valid failure, but hitting the Run >>> >>>button 100 times >>> >>>(and am I sure at 100??) >>> >>>to see if its fixed is a bit much. >>> >>> >>>How about the ability to set a count for repeated runs? >>> >>> >>>-- >>> >>>Dennis >>>Smith >>><mailto:quenton@CherniakSoftware.com>quenton@CherniakSoftware.com >>> >>>Cherniak Software Development Corporation +1 905.771.7011 >>> >>>400-10 Commerce Valley Dr E Fax: +1 905.771.6288 >>> >>>Thornhill, ON Canada L3T >>>7N7 <http://www.CherniakSoftware.com>http://www.CherniakSoftware.com >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>> >>>This SF.net email is sponsored by: VM Ware >>> >>>With VMware you can run multiple operating systems on a >>> >>>single machine. >>> >>>WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual >>> >>>machines at the >>> >>>same time. Free trial click here: >>><http://www.vmware.com/wl/offer/345/0>http://www.vmware.com/wl/offer/345/0 >>> >>>_______________________________________________ >>> >>>SUnit-news mailing list >>> >>><mailto:SUn...@li...>SUn...@li... >>> >>>https://lists.sourceforge.net/lists/listinfo/sunit-news >>> >>> >>> >> >> >> >>********************************************************************** >> >>This message and any attachments are intended for the >> >>individual or entity named above. If you are not the intended >> >>recipient, please do not forward, copy, print, use or disclose this >> >>communication to others; also please notify the sender by >> >>replying to this message, and then delete it from your system. >> >> >>The Timken Company >> >>********************************************************************** >> >> >> >> >>------------------------------------------------------- >> >>This SF.net email is sponsored by: VM Ware >> >>With VMware you can run multiple operating systems on a single machine. >> >>WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the >> >>same time. Free trial click here: >><http://www.vmware.com/wl/offer/345/0>http://www.vmware.com/wl/offer/345/0 >> >>_______________________________________________ >> >>SUnit-news mailing list >> >><mailto:SUn...@li...>SUn...@li... >> >>https://lists.sourceforge.net/lists/listinfo/sunit-news >> >> > > > >-- > >Dennis >Smith ><mailto:quenton@CherniakSoftware.com>quenton@CherniakSoftware.com > >Cherniak Software Development Corporation +1 905.771.7011 > >400-10 Commerce Valley Dr E Fax: +1 905.771.6288 > >Thornhill, ON Canada L3T >7N7 <http://www.CherniakSoftware.com>http://www.CherniakSoftware.com -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |
From: Jarvis, R. P. (Contingent) <Ja...@ti...> - 2003-07-22 12:51:28
|
So what's needed is the ability to select a bunch of tests, hit a button or select a menu item (e.g. "Run Multiple Times..."), have a dialog pop up that allows the user to enter a repeat count, and then have the selected tests run multiple times. Which UI are you using for running your tests? (SUnitBrowser? TestRunner?) And are you using VisualWorks, VAST, Dolphin, Squeak, or some other Smalltalk implementation? Bob Jarvis Compuware @ Timken -----Original Message----- From: Dennis Smith [mailto:dennis@CherniakSoftware.com] Sent: Tuesday, July 22, 2003 8:19 AM To: sun...@li... Subject: Re: [SUnit-news] Ability to run tests multiple times ... Yes one could do that for any individual test, but if one has 100's it would seem useful to be able to set for 1000 runs and go home for the night?? Jarvis, Robert P. (Contingent) wrote: How about putting a loop in the body of the test, i.e. testSeveralTimes 100 timesRepeat: [ <test code here> ] ? Just a thought. Bob Jarvis Compuware @ Timken -----Original Message----- From: Dennis Smith [ mailto:dennis@CherniakSoftware.com <mailto:dennis@CherniakSoftware.com> ] Sent: Tuesday, July 22, 2003 7:42 AM To: sun...@li... <mailto:sun...@li...> Subject: [SUnit-news] Ability to run tests multiple times ... In my first use of SUnit, I ran into a case where about every 20 or 30 runs of a test it failed. It was a valid failure, but hitting the Run button 100 times (and am I sure at 100??) to see if its fixed is a bit much. How about the ability to set a count for repeated runs? -- Dennis Smith quenton@CherniakSoftware.com <mailto:quenton@CherniakSoftware.com> Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com <http://www.CherniakSoftware.com> ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 <http://www.vmware.com/wl/offer/345/0> _______________________________________________ SUnit-news mailing list SUn...@li... <mailto:SUn...@li...> https://lists.sourceforge.net/lists/listinfo/sunit-news <https://lists.sourceforge.net/lists/listinfo/sunit-news> ********************************************************************** This message and any attachments are intended for the individual or entity named above. If you are not the intended recipient, please do not forward, copy, print, use or disclose this communication to others; also please notify the sender by replying to this message, and then delete it from your system. The Timken Company ********************************************************************** ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 <http://www.vmware.com/wl/offer/345/0> _______________________________________________ SUnit-news mailing list SUn...@li... <mailto:SUn...@li...> https://lists.sourceforge.net/lists/listinfo/sunit-news <https://lists.sourceforge.net/lists/listinfo/sunit-news> -- Dennis Smith quenton@CherniakSoftware.com <mailto:quenton@CherniakSoftware.com> Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com <http://www.CherniakSoftware.com> |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 12:18:59
|
Yes one could do that for any individual test, but if one has 100's it would seem useful to be able to set for 1000 runs and go home for the night?? Jarvis, Robert P. (Contingent) wrote: >How about putting a loop in the body of the test, i.e. > >testSeveralTimes > 100 timesRepeat: [ <test code here> ] > >? > >Just a thought. > >Bob Jarvis >Compuware @ Timken > > > >>-----Original Message----- >>From: Dennis Smith [mailto:dennis@CherniakSoftware.com] >>Sent: Tuesday, July 22, 2003 7:42 AM >>To: sun...@li... >>Subject: [SUnit-news] Ability to run tests multiple times ... >> >> >>In my first use of SUnit, I ran into a case where about every >>20 or 30 >>runs of a test >>it failed. It was a valid failure, but hitting the Run >>button 100 times >>(and am I sure at 100??) >>to see if its fixed is a bit much. >> >>How about the ability to set a count for repeated runs? >> >>-- >>Dennis Smith quenton@CherniakSoftware.com >>Cherniak Software Development Corporation +1 905.771.7011 >>400-10 Commerce Valley Dr E Fax: +1 905.771.6288 >>Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: VM Ware >>With VMware you can run multiple operating systems on a >>single machine. >>WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual >>machines at the >>same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >>_______________________________________________ >>SUnit-news mailing list >>SUn...@li... >>https://lists.sourceforge.net/lists/listinfo/sunit-news >> >> >> > > >********************************************************************** >This message and any attachments are intended for the >individual or entity named above. If you are not the intended >recipient, please do not forward, copy, print, use or disclose this >communication to others; also please notify the sender by >replying to this message, and then delete it from your system. > >The Timken Company >********************************************************************** > > > >------------------------------------------------------- >This SF.net email is sponsored by: VM Ware >With VMware you can run multiple operating systems on a single machine. >WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the >same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >_______________________________________________ >SUnit-news mailing list >SUn...@li... >https://lists.sourceforge.net/lists/listinfo/sunit-news > > -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Jarvis, R. P. (Contingent) <Ja...@ti...> - 2003-07-22 12:03:25
|
How about putting a loop in the body of the test, i.e. testSeveralTimes 100 timesRepeat: [ <test code here> ] ? Just a thought. Bob Jarvis Compuware @ Timken > -----Original Message----- > From: Dennis Smith [mailto:dennis@CherniakSoftware.com] > Sent: Tuesday, July 22, 2003 7:42 AM > To: sun...@li... > Subject: [SUnit-news] Ability to run tests multiple times ... > > > In my first use of SUnit, I ran into a case where about every > 20 or 30 > runs of a test > it failed. It was a valid failure, but hitting the Run > button 100 times > (and am I sure at 100??) > to see if its fixed is a bit much. > > How about the ability to set a count for repeated runs? > > -- > Dennis Smith quenton@CherniakSoftware.com > Cherniak Software Development Corporation +1 905.771.7011 > 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 > Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual > machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > SUnit-news mailing list > SUn...@li... > https://lists.sourceforge.net/lists/listinfo/sunit-news > ********************************************************************** This message and any attachments are intended for the individual or entity named above. If you are not the intended recipient, please do not forward, copy, print, use or disclose this communication to others; also please notify the sender by replying to this message, and then delete it from your system. The Timken Company ********************************************************************** |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 11:53:41
|
I would like to retain the sample test classes, but running them when I want to run all tests on my own classes is a nuisance. Not sure what kind of UI one would want to do that, just a thought. I made a quick change to the Run-All so it runs just mine, but the drop-down shows all of them -- not sure THAT is exactly what I want either. -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Dennis S. <dennis@CherniakSoftware.com> - 2003-07-22 11:42:29
|
In my first use of SUnit, I ran into a case where about every 20 or 30 runs of a test it failed. It was a valid failure, but hitting the Run button 100 times (and am I sure at 100??) to see if its fixed is a bit much. How about the ability to set a count for repeated runs? -- Dennis Smith quenton@CherniakSoftware.com Cherniak Software Development Corporation +1 905.771.7011 400-10 Commerce Valley Dr E Fax: +1 905.771.6288 Thornhill, ON Canada L3T 7N7 http://www.CherniakSoftware.com |
From: Bernhard P. <ber...@pi...> - 2003-07-05 17:13:47
|
Just a small piece of information: I tried the test in VA 6.0 and the UI process also hangs. However, the "Click Here to Interrupt Execution"-Button works. Bernhard |
From: Bernhard P. <ber...@pi...> - 2003-07-05 14:06:35
|
I just tried out Paolo's solution for my problem with testing forked code on my real problem. However, it did not work in my case. That can only mean that my simple test case was too simple. It did not model what was really happening. Sigh... What is really happening seems to be like this: test1Sync responded := false. [CwAppContext default syncExecInUI: [responded := true]] fork. self assert: responded So response processing is done in the UI process, where all UI activity is supposed to happen in VA. This test also fails because the assert comes before the response is processed. When I tried Paolo's solution with the semaphore my image hung. (Even VA's User Break Button does not help.) "BEWARE: THE FOLLOWING WILL PROBABLY HANG YOUR IMAGE!" test1SyncSem | s | responded := false. s := Semaphore new. [CwAppContext default syncExecInUI: [responded := true. s signal]] fork. s wait. self assert: responded I do not completely understand this. I thought SUnit would run the test in its own process, and this would wait. However, it seems the UI process waits. Again I would be very thankful for help. Bernhard |
From: Bernhard P. <ber...@pi...> - 2003-07-05 12:46:41
|
Thank you very much for the quick answer! The first test is green now! (I had to insert the wait before the assert like in your second example.) I will try to use it in a real example now. I am afraid the second test still brings up a debugger. The reason seems to be that SUnit uses exception handlers to suppress debuggers in the first place and as far as I know exceptions are implemented in VA by stack lookup. However, the forked process does not have SUnit's handlers on its stack. So far I have no idea how to solve that. Thanks again. Kind regards, Bernhard |
From: Bonzini <bo...@gn...> - 2003-07-05 11:47:04
|
I think it can be fixed like this: test1 | s | responded := false. s := Semaphore new. [Processor yield. responded := true. s signal] fork. self assert: responded or better (and needed for the other test case), test2 | s | responded := false. s := Semaphore new. [[Processor yield. self feil. responded := true] ensure: [ s signal ]] fork. s wait. self assert: responded You might want to add a BlockClosure>>#forkAndJoin method like this forkAndJoin | s result | s := Semaphore new. [result := self ensure: [ s signal ]] fork. s wait. ^result and then just use it instead of #fork. Paolo |
From: <of...@pi...> - 2003-07-05 11:18:36
|
I am trying to use SUnit 3.1 (VisualAge 4.5) to test client/server code which uses a forked process to process the response. I am having two problems: 1) The test finishes before the response is processed. Find below the simplest possible test case I could think of showing the problem: test1 responded := false. [Processor yield. responded := true] fork. self assert: responded The test produces a failure because the assert is executed before the responded flag is set to true. 2) A debugger comes up when an error/failure occurs in response processing. Again an example to illustrate it: test2 responded := false. [Processor yield. self feil. responded := true] fork. self assert: responded I experimented with several ways to test this kind of code. I tried semaphores, a/syncExecInUI:. However, I was not successful so far and thought it might help to ask you. I would be quite thankful for an answer. Kind regards, Bernhard Pieber |
From: Joseph P. <jpe...@ac...> - 2003-04-28 14:38:28
|
Here's the latest news about SUnit. The 3.1 ports for MT and GemStone are still out. Both ports have run into problems with exception handling code in the dialect base. Because of this, and because a number of people have asked me, I've decided not to wait any longer, and have posted a first code drop of SUnit 3.2 in Rosetta format up on Sourceforge. Let me know if you need help converting it. Now you can see what I've been working on... That's all for now! Cheers -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |
From: Joseph P. <jpe...@ac...> - 2003-04-15 12:32:45
|
Just a little bit of news about SUnit. The three dialect ports with release candidates (ST/X, GNU and Object Studio) have been promoted to release status, by virtue of no one complaining to me about any problems ;-) The ports for MT and GemStone are still out... I have a first code drop for 3.2 ready, but I don't want to release it until all 3.1 ports are finished. To see what's been done already, go to the feature request page at the SUnit sourceforge site, and filter for closed items. A lot done, a lot to do. That's all for now! Cheers -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |
From: Paul W. <pwa...@ho...> - 2003-04-07 07:56:39
|
>From: Joseph Pelrine <jpe...@ac...> >To: "Paul Wallimann" <pwa...@ho...>, >sun...@li... >Subject: Re: [SUnit-news] TestCase>>#printOn: >Date: Fri, 04 Apr 2003 08:59:40 +0200 > >At 08:48 04.04.2003, Paul Wallimann wrote: >>[snip] >>On ObjectStudio 6.8 this results in: >> >>MyTestCase>>##testFoo > >Arrgh! Paul, what does #asString return? That would be my preferred >implementation. #testFoo asString -> 'testFoo' i.e. using #asString in TestCase>>printOn: would result in MyTestCase>>#testFoo. HTH, Paul _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: Joseph P. <jpe...@ac...> - 2003-04-04 06:59:55
|
At 08:48 04.04.2003, Paul Wallimann wrote: >[snip] >On ObjectStudio 6.8 this results in: > >MyTestCase>>##testFoo Arrgh! Paul, what does #asString return? That would be my preferred implementation. Cheers -- Joseph Pelrine [ | ] MetaProg GmbH Email: jpe...@me... Web: http://www.metaprog.com "If you don't live on the edge, you're taking up too much space" - Doug Robinson |