DEV Community

Cover image for Release0.2 week three
Jason
Jason

Posted on

Release0.2 week three

        This project is very challenging because I need to know some knowledge about Algorithms. The project named Fliscopt, and it is a simple optimization library for flight scheduling and related problems in the discrete domain. The library supports plotting, asynchronous multiprocessing, and unimodal optimization benchmarks.

The issue

        The issue need to add error message for failed unittests. A message indicating a failure for each unit-test, should give the user a small idea of what went wrong in the test. ex:self.assertEqual ( f(values), 0, msg ='HEURISTIC MESSAGE INDICATING WHY TEST CASE FAILED')

How to do

First, understand the testing structure and find the files which need to add error messages. I learned some automation testing knowledge and all test files saved in the tests folder. The run_pypy-tests.sh and run_tests.sh files implement automated testing! The test_algorithms.py, test_chaining.py and test_fitness.py need to add error messages.Image description
Second, learned the algorithms and decided how to write the error message. This project has about a dozen algorithms, and they have different dimensions, input domain and global minimum. Here are three-dimensional images of several functions.Image description
Image description
Image description
Three, according to different dimensions, input domain, global minimum and the different positions of the matrix, try to write a draft of the wrong information. Complete the task after repeated discussion and confirmation with the owner.Image description
Image description
Image description

Reflection

  1. I learned some methods to write automation test code. I can try to do the automation testing work in the future.
  2. Learned some knowledge about some functions of the algorithm. Although the task was difficult, I was successfully completed through communication with the owner.

Top comments (0)