Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Unit Testing

Name: Anonymous 2010-07-28 3:25


Test Suite Complete
===========================================================
        Total Tests:      836
         Total Time:    10:03
           Coverage:       92%
    Total Tests Run:      836
Total Ignored Tests:        0
 Total Failed Tests:        0
 Total Passed Tests:      836


Am I ENTERPRISE QUALITY yet? Also, feels good man.

Name: Anonymous 2010-07-28 4:23

How often do you find bugs in your code that elude your test suite?

Name: Anonymous 2010-07-28 4:28

This thread is stupid and you should feel stupid.

Name: Anonymous 2010-07-28 4:53

I don't understand how to write unit tests :|

Name: Anonymous 2010-07-28 5:01

>>2
User testing and bug reports. And when a user identified bug is located, an automated regression test is added to the test suite to make sure it never comes back.

Name: Anonymous 2010-07-28 9:05

>>5
But... you've written the code, how could you not account for all execution paths?

Name: Anonymous 2010-07-28 9:10

Unit testing is bad, and you should feel bad

http://www.youtube.com/watch?v=8W5Jd_wzB90

"Program testing can be used to show the presence of bugs, but never to show their absence" - Edsger Dijkstra

Name: Anonymous 2010-07-28 16:57

So who's going to write the automatic debugger/tester that forks every time it comes across a conditional statement?

Name: Anonymous 2010-07-28 17:06

>>8
What's that going to help?

if(hma != NULL)
   *hma = MAGIC_COOKIE;
else
   errval = E_HERPDERP;

Name: Anonymous 2010-07-28 17:12

>>7
Please write his name properly
Edsger Dickstrap

Name: Anonymous 2010-07-28 17:16

>>9
[code]It would obviously set hma to NULL for one forked child and some non-NULL value for the other (leaving it alone if it already is).[/code]

Name: Anonymous 2010-07-28 19:22

>>11
It would obviously BBCODE FAILURE

Name: Anonymous 2010-07-28 19:40

>>12
This post has been deleted and replaced with the following:
Name: Anonymous
Email:
Subject: Compiling ``[/code]'' into [code] tags

It can't be done.

Name: Anonymous 2010-07-28 20:48

>>13
[/code]
Fuck your shit.

Name: Anonymous 2010-07-28 21:14

>>13
const char *s = "[#][/#]";[/code]

Name: Anonymous 2010-07-28 21:22

>>14
Compiles to bad BBCode.
>>15
Broken.

Name: Anonymous 2010-07-29 2:44

\[/code]?

Name: Anonymous 2010-07-29 3:31

>>17
Lol escape characters

Name: Anonymous 2010-07-29 7:33

>>18
Yeah, it usually works ...

Well, how about this?

[/co[#][/#]de]

Name: Anonymous 2011-02-03 0:05

Name: I Am Constant 2013-04-10 4:33

Daily reminder that sure, you may be good, but you'll never be Lambda Arthur Calculus good.

http://dis.4chan.org/read/prog/1365286976/21

Name: Anonymous 2013-04-10 7:54

Congratulations. I'm just at 41 tests for 4 classes, but still feels good.

Haven't measured coverage yet, but i think i'm near 80%.

Keep fighting the good fight

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List