Speccer
Upcoming SlideShare
Loading in...5
×
 

Speccer

on

  • 2,264 views

Speccer is a wrapper of sort for unittest module. In essence it makes writing tests a lot less painful. Check out this presentation to see a simple example of how it works....

Speccer is a wrapper of sort for unittest module. In essence it makes writing tests a lot less painful. Check out this presentation to see a simple example of how it works.

Note that the code Speccer uses is exactly equivalent to the code shown at first! So as you can see you can write a lot by writing a little.

Statistics

Views

Total Views
2,264
Views on SlideShare
1,048
Embed Views
1,216

Actions

Likes
0
Downloads
2
Comments
0

38 Embeds 1,216

http://nixtu.blogspot.fi 345
http://www.geekcollision.org 281
http://www.nixtu.info 236
http://nixtu.blogspot.com 195
http://nixtu.blogspot.co.uk 20
http://nixtu.blogspot.de 19
http://nixtu.blogspot.in 12
http://nixtu.blogspot.fr 11
http://3888915631085608984_688534dc0f28afc0e34488a6bbf98baacbd62210.blogspot.com 11
http://nixtu.blogspot.com.es 8
http://feeds.feedburner.com 8
http://nixtu.blogspot.ca 8
http://nixtu.blogspot.it 6
http://nixtu.blogspot.gr 6
http://nixtu.blogspot.sk 5
http://nixtu.blogspot.kr 5
http://newsblur.com 4
http://nixtu.blogspot.com.br 4
http://nixtu.blogspot.pt 3
http://nixtu.blogspot.com.au 3
http://nixtu.blogspot.se 3
http://nixtu.blogspot.dk 2
http://coderwall.com 2
http://cloud.feedly.com 2
http://nixtu.blogspot.co.nz 2
http://nixtu.blogspot.ro 2
http://nixtu.blogspot.hu 2
http://nixtu.blogspot.jp 1
http://nixtu.blogspot.hk 1
http://nixtu.blogspot.be 1
http://nixtu.blogspot.tw 1
http://nixtu.blogspot.co.at 1
http://nixtu.blogspot.mx 1
http://github.github.com 1
http://nixtu.blogspot.ie 1
http://nixtu.blogspot.ch 1
http://nixtu.blogspot.nl 1
http://www.nixtu.blogspot.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Speccer Speccer Presentation Transcript

  • Speccer Juho Vepsäläinen
  • import randomimport unittestclass TestSequenceFunctions(unittest.TestCase): def setUp(self): self.seq = range(10) def test_choice(self): element = random.choice(self.seq) self.assertTrue(element in self.seq)if __name__ == __main__: unittest.main()
  • import randomset up seq = range(10)chooses element in sequence random.choice(seq) in seq
  • https://github.com/bebraw/speccer
  • References● http://www.flickr.com/photos/ctbto/4926598654/ - nuke● http://www.flickr. com/photos/lesmontsdore/5513104816/ - python● http://www.flickr.com/photos/jeffeaton/2778624999/ - beans● http://www.flickr. com/photos/ecoagriculture/2424054385/ - sloth