Speccer
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Speccer

  • 2,307 views
Uploaded on

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.

More in: Technology , Sports
  • 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
2,307
On Slideshare
1,090
From Embeds
1,217
Number of Embeds
38

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 1,217

http://nixtu.blogspot.fi 345
http://www.geekcollision.org 282
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

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. Speccer Juho Vepsäläinen
  • 2. 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()
  • 3. import randomset up seq = range(10)chooses element in sequence random.choice(seq) in seq
  • 4. https://github.com/bebraw/speccer
  • 5. 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