GSoC Report Week 1: Tests and the very beginning

The first week of my GSoC passed surprisingly quickly. Most of the time was dedicated to diving into the source code and fully understanding how everything works and developing tests. 

This week I ...

  • Wrote tests for some parts of the original project code that weren’t covered yet. I have never done this before, so it was very educational. I’ve got to know some python libraries for testing (unittest, py.test, nose and nose-parameterized), learnt how to develop proper parameterized tests and how to capture and test logger output. This helped to achieve nearly 100% test coverage of the files that I was working on. 
  • Made a skeleton of the future search function, for the moment it it works given that the language of the text it receives is pre-detected and exactly known. And a language detector would be implemented later. 
  • Wrote some regular expressions for search of multilanguage numeric date expressions in popular formats (like DD-MM-YYYY)

Comments

  1. Welcome to GSOC, sounds like you have a good start on things. Testing is for sure one thing that people generally leave until later... and a lot of times that later never rolls around so its great to see new programmers learning about tests.

    You may also want to take a look at http://labix.org/python-dateutil as its a library I have used before for dealing with date formats.

    ReplyDelete

Post a Comment