17
The 2012 TiPBoF

pycon 2012 tip bof -- intro slides

Embed Size (px)

Citation preview

Page 1: pycon 2012 tip bof -- intro slides

The 2012 TiPBoF

Page 2: pycon 2012 tip bof -- intro slides

Shout Outs!

Page 3: pycon 2012 tip bof -- intro slides

Paul Hildebrandt & DisneyHerokuJesse NollerEwa JodlowskaPeter Kropf

Page 4: pycon 2012 tip bof -- intro slides

Thank YOU!

Page 5: pycon 2012 tip bof -- intro slides

Let’s Start the Show

Page 6: pycon 2012 tip bof -- intro slides

Top 10 Reasons No One Uses Your Testing Tool.

The Python Testing Cabal

Page 7: pycon 2012 tip bof -- intro slides

10. Your tool is for behavior driven development, which no one does.

“BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale,

high-automation, agile methodology. It describes a cycle of interactions with well-

defined outputs, resulting in the delivery of working, tested software that matters.”

Wikipedia: Behavior Driven Development

Page 8: pycon 2012 tip bof -- intro slides

9. Your test tool requires inheritance and use CamelCase, so everyone thinks it’s actually for Java code.

Cheap shot, I know.

Page 9: pycon 2012 tip bof -- intro slides

8. Your documentation sucks.

“See examples for information on use.”

Page 10: pycon 2012 tip bof -- intro slides

7. Your testing tool is only usable by programmers, and barely even them.

“So, just instantiate the Frobnitz class, stick it into your base metaclass hierarchy with

dependency injection, and voila! Syntax-highlighted tracebacks!”

Page 11: pycon 2012 tip bof -- intro slides

6. Your own tests don’t work

Irony, thy name is open source.

Page 12: pycon 2012 tip bof -- intro slides

5. Your tool runs tests so fast, they can’tactually be doing anything.

% bernhardtests

……………………………………………….

……………………………………………….

……………………………………………….

……………………………………………….

……………………………………………….

……………………………………………….

……………………………………………….

---------------------------------------------------

Ran 2500 test in 0.002s

OK

Page 13: pycon 2012 tip bof -- intro slides

4. Nobody can figure out which of your assert functions to use.

From http://docs.python.org/library/unittest.html:

“(If you are already familiar with the basic concepts of testing, you might want to skip to

the list of assert methods.)”

e.g. self.assertThisAssertIsFalse()

Page 14: pycon 2012 tip bof -- intro slides

3. Your testing tool is only for Python3…

…which no one uses.

Page 15: pycon 2012 tip bof -- intro slides

2. It’s another fucking mock library.

‘nuff said.

Page 16: pycon 2012 tip bof -- intro slides

1. Your tool is for Web testing, yet doesn’t support JavaScript.

“twill strives to be a complete implementation of a Web browser, omitting only JavaScript

support.”

Page 17: pycon 2012 tip bof -- intro slides

Thanks to Terry!

And apologies to @voidspace…