For this blog entry, we are focusing in unit testing on python. While doing some research it’s kinda similar to JUnit (for unit testing on java) and it’s python (my first programming language) so I hope it be as easy as it sounds.
First I read an article recommended by our professor about small talk and testing on it using a framework to support it. Interesting article, but most useful is the tool Hypthes.is which allow us classmates to make annotations on the document so we could share our thought about the paper.
Also, we could read the paper thanks to Wayback Machine which allows to see all versions of some websites so, while I was on this I use the occasion to look into a website I like to see how it looked years ago. I chose instagram because is my favorite social network and app, I obviously knew that there wasn’t a website since the beginnings but I had the doubt of what they used to show and I found this:
It’s nostalgic to see the old version of instagram before Facebook happened. I think Instagram have one of the best app designs (until their last update that I don’t love) but the oldie one is pretty pretty, it would be nice to have a feature like use the old design or something. But well… let’s continue with python.
For this task we had to look into a LinkedIn course about using PyCharm for unit testing on python: Unit Testing and Test Driven Development in Python course. First we defined some test cases
and then we run them
At the end all test cases were successful and the tutorial was fun to do. I truly feel I have learned something new and useful because the course was so well explained. I think this kind of activities are the ones we need to do to feel the course is worthing every cent our parents or tutors are spending in our education.
About PyTest: I liked it, I think is very simple but powerful at the same time, like python is very simple to use and implement and I think no one who likes this kind of stuff would have problem understanding it. It has a lot to do with JUnit, but it’s very different at the same time, I just enjoyed it.
I highly recommend to take this course now more than ever. Bye, bye.