Posts Related To Testing (3)

Unit Testing in Flask

Unit Testing in Flask

Testing is so fundamental in good software development that there is even a process based on testing, called Test-driven development (TDD). TDD allows for test cases to be specified and validated prior to building an application. A TDD approach to software development is meant to encourage simple designs and inspire confidence.

A software developer is encouraged to begin by writing tests, which fail at the start for obvious and expected reasons. An effort is then made to write the simplest code that passes the new test. This change should see that the test case passes. Depending on the size of an application, the developer will need to refactor the code as much as needed using each test to ensure that the functionality is preserved.

The cycle is repeated for each new piece of functionality. Fundamentally, tests should be small and incremental, and commits made often. This allows the developer to undo or revert the failed tests than debug excessively.

Unit Testing in Python

Unit Testing in Python

Unit testing is a development approach that looks at the smallest pieces of code, called units, in a software application that are tested for correct operations. When a unit is tested, you can verify that the code tested works as intended. In this article, you will learn how to implement unit testing on a Python script.

Test Your Locally Running App On Another Device

Test Your Locally Running App On Another Device

Have you ever wondered how you can view your locally running application on another device such as your mobile phone? You probably would love to get feedback on your application before deploying, but you are faced with the fact that your computer has a firewall that does not allow for external access. The good news is that it is possible to bypass this limitation and still share a link to your application with a friend who lives on a different part of the world for testing purposes.