Your SlideShare is downloading. ×
Automated testing in Python and beyond
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Automated testing in Python and beyond

1,426
views

Published on

KiwiPyCon2011, Wellington, Sunday, Track 1, Automated testing in Python and beyond by Brenda Wallace, Open source hacker @ Weta Digital. Python libraries and extensions. A short intro to unitest and …

KiwiPyCon2011, Wellington, Sunday, Track 1, Automated testing in Python and beyond by Brenda Wallace, Open source hacker @ Weta Digital. Python libraries and extensions. A short intro to unitest and why they are so good for you.
Overview of python unittests and nose, and comparison to popular unittesting frame works in other languages, including perl, php, ruby, java, scala, erlang.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,426
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
      Automated testing in Python and beyond
      Brenda Wallace
    • Production Engineer, Weta Digital
  • 2. Unit Tests
    • Unit Testing is testing of individual program "units" in relative isolation
  • 3. Wah?
    • What they are
    • 4. Input -> expected output
    • 5. That's a test
  • 6. Glorified If/Else statements if (stuff happens as expected): OK! else: Fail.
  • 7. Python unit tests
    • class testMyCode(unittest.TestCase):
    def test_Stuff(self): a = MyDataProcessingThing(5) self.assertEqual(a.blah, 9)
  • 8. Python
    • Pass, fail, coverage
  • 9. Super Powers
    • Massive refactors, and know they worked
  • 10. Wanna try something wickedly clever?
    • Do code change quickly
    • 11. instantly see if it works for all 1,000 of your use cases
  • 12. Confidence
  • 16. More Python
  • 20. Disney
    • pythoscope
  • 21. Where ?
    • Check them into a folder called tests
    • 22. Keep in git/whatever
  • 23. The Theme
      • There were shortcomings in the other frame work so instead of helping fixing those, we started a new one.
  • 24. Java
    • JUnit
      • What everyone uses
    • JTiger
      • There were shortcomings, so instead of fixing those, we started a new one.
    • TestNG
      • Our new one fixes different short comings
    • Looks like python, but with less words
    • 25. But life is too short
  • 26. Perl
  • 29. PHP
    • PhpUnit
    • 30. SimpleTest
      • Web
  • 31. Erlang
    • EUnit
    • 32. Best intro to testing ever.
  • 33. Write tests
    • Write tests before you write code
  • 34. Re-run
    • Hudson/Jenkins
    • 35. On cron e.g. every hour
    • 36. On commit, poll git for changes
    • 37. Email everyone when it breaks
    • 38. Email only the person who broke it.
  • 39. Thank You