Speccer                 Juho          Vepsäläinen
import randomimport unittestclass TestSequenceFunctions(unittest.TestCase):  def setUp(self):    self.seq = range(10)  def...
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...
Speccer
Speccer
Speccer
Upcoming SlideShare
Loading in...5
×

Speccer

2,106

Published 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.

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.

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,106
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Speccer

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

    Clipping is a handy way to collect important slides you want to go back to later.

×