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

Like this? Share it with your network

Share

Automated testing in Python and beyond

  • 1,826 views
Uploaded 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......

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.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,826
On Slideshare
1,826
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
13
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