digitalmars.D.learn - unit testing
- sleek (9/9) Jul 15 2008 Can anyone explain to me the proper way to put a unittest { ... } block ...
- sleek (7/17) Jul 15 2008 Sorry, it seems that the dmd is not the problem here. In fact, what was
- Jarrett Billingsley (3/8) Jul 16 2008 Does your dsss.conf file have the -unittest flag in it? If so, that's w...
- sleek (6/19) Jul 19 2008 I discovered this to be user error. I didn't realize that dsss was creat...
- Jarrett Billingsley (5/9) Jul 19 2008 Alternatively, you can do "dsss build -full mymodule.d". That forces a ...
- Jarrett Billingsley (4/13) Jul 19 2008 And everyone, I mean *everyone* misspells it the wrong way. It's like a...
- Koroskin Denis (3/5) Jul 20 2008 Don't pay attention to that, Jarett :)
- Anders Bergh (4/19) Jul 20 2008 Don't worry, at least I know how to spell your name, Jarret!
- Don (4/21) Jul 22 2008 You should see what happens to my surname. I have a list of more than
- Jarrett Billingsley (4/24) Jul 22 2008 Wow, I get my last name misspelled too but not quite that diversely. Yo...
- Ary Borenszweig (2/28) Jul 22 2008 Please don't complain about complicated last names. :-P
- Jarrett Billingsley (3/29) Jul 22 2008 O_O
- Don (7/31) Jul 23 2008 Gwgston, Cluster, Augsta, Klaxton, Coueston, Clipson, McClugston, ...
- Sean Kelly (5/36) Jul 23 2008 But those aren't even spelling errors--they're entirely different names!...
- Ary Borenszweig (7/46) Jul 24 2008 My name (Ary) is pretty uncommon here in Argentina. But the name "Ariel"...
- sleek (4/14) Jul 23 2008 Awesome! Nice dsss tip.
- Bill Baxter (9/27) Jul 23 2008 If you change the dsss.conf file, DSSS will detect that and do a full
Can anyone explain to me the proper way to put a unittest { ... } block into my code so that the only time unit tests get compiled and run is if I'm in a release mode? I thought that I could simply compile with: dmd -release mymodule.d However, when I run the resulting executable the unit tests are getting executed. I can wrap the unittest { ... } block in a debug { ... } block, but is this really the best way? Thanks for the help
Jul 15 2008
Sorry, it seems that the dmd is not the problem here. In fact, what was being executed was the following: dsss build mymodule.d -release This seems to be compiling unit tests in all the time. I'm not sure why. Can anyone help with this? "sleek" <cslush gmail.com> wrote in message news:g5jmrt$eaf$1 digitalmars.com...Can anyone explain to me the proper way to put a unittest { ... } block into my code so that the only time unit tests get compiled and run is if I'm in a release mode? I thought that I could simply compile with: dmd -release mymodule.d However, when I run the resulting executable the unit tests are getting executed. I can wrap the unittest { ... } block in a debug { ... } block, but is this really the best way? Thanks for the help
Jul 15 2008
"sleek" <cslush gmail.com> wrote in message news:g5jo61$h1m$1 digitalmars.com...Sorry, it seems that the dmd is not the problem here. In fact, what was being executed was the following: dsss build mymodule.d -release This seems to be compiling unit tests in all the time. I'm not sure why. Can anyone help with this?Does your dsss.conf file have the -unittest flag in it? If so, that's why.
Jul 16 2008
I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help Jarret "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5kqsl$313f$1 digitalmars.com..."sleek" <cslush gmail.com> wrote in message news:g5jo61$h1m$1 digitalmars.com...Sorry, it seems that the dmd is not the problem here. In fact, what was being executed was the following: dsss build mymodule.d -release This seems to be compiling unit tests in all the time. I'm not sure why. Can anyone help with this?Does your dsss.conf file have the -unittest flag in it? If so, that's why.
Jul 19 2008
"sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 19 2008
"Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com..."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 19 2008
On Sun, 20 Jul 2008 08:44:54 +0400, Jarrett Billingsley <kb3ctd2 yahoo.com> wrote:And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.Don't pay attention to that, Jarett :)
Jul 20 2008
On Sun, Jul 20, 2008 at 6:44 AM, Jarret Billingsley <kb3ctd2 yahoo.com> wrote:"Jarret Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...Don't worry, at least I know how to spell your name, Jarret! -- Anders"sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarrettAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarret with one T.
Jul 20 2008
Jarrett Billingsley wrote:"Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 22 2008
"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Jarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 22 2008
Jarrett Billingsley a écrit :"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Please don't complain about complicated last names. :-PJarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 22 2008
"Ary Borenszweig" <ary esperanto.org.ar> wrote in message news:g660fr$2156$1 digitalmars.com...Jarrett Billingsley a écrit :O_O"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Please don't complain about complicated last names. :-PJarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 22 2008
Jarrett Billingsley wrote:"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Gwgston, Cluster, Augsta, Klaxton, Coueston, Clipson, McClugston, ... And three different variants in one school report. Every teacher spelt it differently. My favourite was for my grandfather: a commemorative plaque to Mr Plugphon for 35 years of service as the former CEO. Ary must have a really hard time.Jarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 23 2008
Don wrote:Jarrett Billingsley wrote:But those aren't even spelling errors--they're entirely different names! And I thought having people pronounce my name as "seen" was bad (yes, teachers too). Sean"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Gwgston, Cluster, Augsta, Klaxton, Coueston, Clipson, McClugston, ... And three different variants in one school report. Every teacher spelt it differently. My favourite was for my grandfather: a commemorative plaque to Mr Plugphon for 35 years of service as the former CEO.Jarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 23 2008
Sean Kelly a écrit :Don wrote:My name (Ary) is pretty uncommon here in Argentina. But the name "Ariel" is somewhat common and people use "Ary" as a shorthand for "Ariel". So people not only get the spelling of my last name wrong, they also fight with my name. I say "Hola, soy Ary" and they say "Ariel?", "No, Ary", "Ariel?", etc., or they just suppose I'm Ariel and later they call me like that. :-PJarrett Billingsley wrote:But those aren't even spelling errors--they're entirely different names! And I thought having people pronounce my name as "seen" was bad (yes, teachers too). Sean"Don" <nospam nospam.com.au> wrote in message news:g64mge$200f$1 digitalmars.com...Gwgston, Cluster, Augsta, Klaxton, Coueston, Clipson, McClugston, ... And three different variants in one school report. Every teacher spelt it differently. My favourite was for my grandfather: a commemorative plaque to Mr Plugphon for 35 years of service as the former CEO.Jarrett Billingsley wrote:Wow, I get my last name misspelled too but not quite that diversely. You wouldn't think "Clugston" would give people that much trouble."Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...You should see what happens to my surname. I have a list of more than 200 different ways that people have got it wrong. Including several on official documents."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...And everyone, I mean *everyone* misspells it the wrong way. It's like a conspiracy.I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 24 2008
Awesome! Nice dsss tip. Thanks Jared! :-P "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com..."sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...I discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply do a "dsss build mymodule.d" and have it cleanly create a new instance. I guess I need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 23 2008
Content-Disposition: inline On Thu, Jul 24, 2008 at 10:25 AM, sleek <cslush gmail.com> wrote:Awesome! Nice dsss tip. Thanks Jared! :-P "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message news:g5ufre$264o$1 digitalmars.com...If you change the dsss.conf file, DSSS will detect that and do a full rebuild. But if other things change out from under it (like library versions or sometimes code) then you will need a -full / or clean. It isn't like SCONS, which keeps an md5 hash of dependencies to detect any changes that might affect a build. --bb"sleek" <cslush gmail.com> wrote in message news:g5u57t$1i6n$1 digitalmars.com...aI discovered this to be user error. I didn't realize that dsss was creating a "dsss_objs" folder. For whatever reason, I couldn't simply doguess"dsss build mymodule.d" and have it cleanly create a new instance. II need to do a "dsss clean" before rebuilding. Thanks for the help JarretAlternatively, you can do "dsss build -full mymodule.d". That forces a full rebuild. And it's Jarrett with two Ts.
Jul 23 2008