*** name has joined #cc | 00:57 | |
*** name has left #cc | 00:57 | |
*** tannewt has joined #cc | 01:18 | |
*** tannewt has quit IRC | 01:27 | |
*** tannewt has joined #cc | 02:12 | |
*** tannewt has quit IRC | 02:55 | |
*** vinu has quit IRC | 02:55 | |
*** nathany has joined #cc | 04:09 | |
*** mlinksva has joined #cc | 04:18 | |
*** e-star has quit IRC | 06:55 | |
*** e-star has joined #cc | 07:02 | |
*** zwnj has quit IRC | 07:04 | |
*** e-star_ has joined #cc | 07:15 | |
*** nathany has quit IRC | 07:22 | |
*** e-star has quit IRC | 07:26 | |
*** e-star has joined #cc | 07:54 | |
*** e-star has quit IRC | 08:13 | |
*** e-star_ has quit IRC | 08:14 | |
*** e-star has joined #cc | 08:17 | |
*** e-star has quit IRC | 08:20 | |
*** KevinMarks has quit IRC | 08:36 | |
*** tannewt has joined #cc | 08:55 | |
*** BjornW has joined #cc | 09:13 | |
*** KevinMarks has joined #cc | 09:19 | |
*** tannewt has quit IRC | 09:39 | |
*** KevinMarks has quit IRC | 09:52 | |
*** Mariano_C has joined #cc | 10:06 | |
*** Mariano_C has left #cc | 10:08 | |
*** KevinMarks has joined #cc | 10:09 | |
*** zwnj has joined #cc | 12:06 | |
*** Weaver has joined #cc | 13:23 | |
*** bkhl has quit IRC | 13:30 | |
*** Weaver has quit IRC | 13:36 | |
*** bkhl has joined #cc | 14:30 | |
*** Luke__ has joined #cc | 14:36 | |
*** Luke has quit IRC | 14:48 | |
*** Luke__ has quit IRC | 14:58 | |
*** zwnj has quit IRC | 15:13 | |
*** zwnj has joined #cc | 15:13 | |
*** poningru has joined #cc | 15:30 | |
*** mlinksva has quit IRC | 15:36 | |
*** BjornW has quit IRC | 15:59 | |
*** zwnj has quit IRC | 16:00 | |
*** mlinksva has joined #cc | 16:01 | |
*** mlinksva has quit IRC | 16:07 | |
*** bovinity has joined #cc | 16:33 | |
*** Luke has joined #cc | 16:35 | |
Luke | paulproteus: you around? | 16:57 |
---|---|---|
paulproteus | Luke, Yup. | 17:09 |
Luke | i'm writing nunit tests for my cc-sharp lib but i'm not quite sure about somethings | 17:16 |
Luke | should I have like... test mp3 files included? | 17:16 |
paulproteus | Luke, Give me a link to your source and I'll see. | 17:17 |
paulproteus | Typically you just test the routines you wrote, trusting that others' code works the way it should. | 17:18 |
Luke | http://svn.sourceforge.net/viewcvs.cgi/cctools/cc-sharp/trunk/ | 17:18 |
paulproteus | Let me wait for SF not to be broken. | 17:19 |
Luke | hahaha | 17:19 |
Luke | damn sf | 17:19 |
Luke | http://cc.monoport.com/627 | 17:22 |
paulproteus | Luke, Just test the code you've written. | 17:25 |
Luke | what'd you mean? | 17:25 |
Luke | mike wanted "tests" =D | 17:25 |
Luke | everything is tested and works but not in a formal way like nunit | 17:26 |
paulproteus | Luke, Well, let me put it this way: Why do you think it works? | 17:26 |
paulproteus | What exactly did you do to verify that? | 17:26 |
Luke | i have main methods in my classes | 17:26 |
paulproteus | Let's say I don't believe you that your XPathExpression is correct. Can you write an Nunit test that shows that it is? | 17:26 |
Luke | uh... no you just have to use it i think | 17:27 |
Luke | i mean you could? | 17:27 |
Luke | and because banshee uses it =D | 17:27 |
paulproteus | Luke, Right, you write a unit test that uses it and makes assertions about the return value. | 17:28 |
paulproteus | Typically you write one unit test per return possibility of each function. | 17:28 |
Luke | should it all use the same MP3? | 17:28 |
paulproteus | If your functions aren't structured for easy unit testing, fix that. (-: | 17:29 |
paulproteus | You might be able to get away with restructuring your functions so they don't depend on MP3 input but instead so they're called on data pre-extracted from the MP3s. Then you don't have to ship an MP3 at all. | 17:29 |
Luke | well they are... but i dont have that data to test it =D | 17:29 |
Luke | it could be anything, it just needs 3 variables | 17:30 |
Luke | string fileUri, string licenseUri, string metadataUri | 17:30 |
paulproteus | I guess the easiest for you would be to bundle a few MP3s for testing. | 17:30 |
paulproteus | I say "a few" because they would have to have different metadata for you to really do tests. | 17:30 |
paulproteus | Conveniently for you, you don't care about the contents of the MP3, so they can be 0 minute, 0 second MP3s with lots of metadata. | 17:31 |
paulproteus | Or they can be 10 minutes of random noise if you'd rather. | 17:31 |
Luke | they need to be hashed | 17:31 |
Luke | so i need file data, and then i need a website | 17:31 |
paulproteus | re: file data: just calculate the hashes using an external utility. re: website: Don't you have web space somewhere? | 17:32 |
Luke | yea I do but should my test depend on my webspace? | 17:32 |
paulproteus | Luke, For now, I guess it has to. | 17:33 |
Luke | There is a difference between bugtesting myself and prooving to others that i've tested it | 17:33 |
paulproteus | Maybe once you have the tests written I can show you how I'd refactor them to avoid requiring the web site dependency. | 17:33 |
paulproteus | Luke, This isn't about proving to others that you've tested it. | 17:33 |
paulproteus | It's about (a) when others make changes, so they can know if they broke things, and (b) when you make changes, you can automatically be notified of if you broke things. | 17:34 |
paulproteus | It's also for (c) showing people that their systems are weird when the automated tests work on your machine but not theirs. | 17:34 |
Luke | ah | 17:34 |
Luke | so it can depend on my personal website and mp3s and such? | 17:34 |
paulproteus | It's better if it doesn't, obviously, but it can. The tests must run everywhere there is an Internet connection. | 17:35 |
paulproteus | It's also good for automated testing of e.g. new C# compilers or optimization settings. | 17:35 |
paulproteus | It also serves as documentation for how to use your API, since you're now guaranteed to provide examples. | 17:36 |
Luke | ok thats what I thought. I can test most of my subrutines with no dependancies on my website but the final verificaion is very specific on how its supposed to work | 17:36 |
Luke | I guess the actual verification class is kind of a special case | 17:37 |
paulproteus | Here's what I suggest: Write all the tests you're comfortable writing. | 17:37 |
paulproteus | And if the verification stuff can't *clearly* be shown to work just by looking at the code, then write a test for it. | 17:37 |
paulproteus | It's not so bad to have the tests depend on your website. | 17:38 |
Luke | well I could include an html file | 17:38 |
Luke | but its ok to have the tests depend on external files right? | 17:38 |
paulproteus | And use a file:/ URI? | 17:38 |
paulproteus | Yeah, sure. | 17:39 |
Luke | yea | 17:39 |
Luke | awesome! thanks for your help | 17:39 |
Luke | i'm gunna grab some lunch | 17:39 |
paulproteus | Sure thing. Have fun eating. | 17:39 |
Luke | ty | 17:39 |
*** mlinksva has joined #cc | 17:57 | |
*** aphid has joined #cc | 18:09 | |
*** vinu has joined #cc | 18:15 | |
*** tannewt has joined #cc | 18:17 | |
*** tannewt has quit IRC | 18:54 | |
*** tannewt has joined #cc | 18:59 | |
*** alikins has joined #cc | 19:02 | |
*** gregdek has joined #cc | 19:05 | |
gregdek | mlinksva: ping :) | 19:06 |
*** lmacken has joined #cc | 19:06 | |
mlinksva | gregdek, pong | 19:09 |
mlinksva | gregdek, got your email, responding | 19:10 |
gregdek | Awesome. Real-time, heh. | 19:11 |
gregdek | Got a couple of RH geeks who just joined the fray: alikins and lmacken. The cchost stuff is great; we're digging through it right now. | 19:12 |
alikins | indeed | 19:15 |
mlinksva | alikins, lmacken, hi and welcome. rejon is a cchost developer who is often in this channel but not online right now. the best place for cchost discussion is cc-devel@lists.ibiblio.org | 19:23 |
mlinksva | i'm happy to attempt to answer anything though :) | 19:23 |
tannewt | whats the deal with cchost? | 19:23 |
mlinksva | tannewt, what do you mean? | 19:23 |
tannewt | I'm just interested in what you guys are talking about | 19:24 |
tannewt | not necessarily specifically cchost | 19:24 |
mlinksva | http://wiki.creativecommons.org/CcHost | 19:24 |
tannewt | ah, right | 19:26 |
tannewt | brb | 19:26 |
*** tannewt has quit IRC | 19:26 | |
alikins | mlinkska: cool | 19:28 |
lmacken | mlinksva: thanks | 19:40 |
*** aphid has quit IRC | 19:42 | |
*** overlordzzzz has joined #cc | 20:00 | |
*** overlordzzzz has left #cc | 20:00 | |
*** nathany has joined #cc | 20:22 | |
*** poningru has quit IRC | 20:39 | |
*** poningru has joined #cc | 20:39 | |
*** aphid has joined #cc | 20:45 | |
*** aphid has quit IRC | 21:27 | |
*** nathany has quit IRC | 21:28 | |
*** poningru has quit IRC | 21:57 | |
*** nathany has joined #cc | 22:12 | |
*** gregdek is now known as gregdek_gone | 22:13 | |
*** poningru has joined #cc | 22:16 | |
*** aphid has joined #cc | 22:17 | |
*** aphid has quit IRC | 22:40 | |
*** nathany has quit IRC | 22:56 | |
*** poningru has quit IRC | 23:05 |
Generated by irclog2html.py 2.3 by Marius Gedminas - find it at mg.pov.lt!