View source
testing
  • Contributors
    1. Loading...
  • Author Commit Message Date Builds
    1 commit behind master.
    Shivkumar Iyer
    Tested branch_advance This function basically extends a branch by returning the next element in a temporary branch. The checks are whether the element under consideration is already in the temporary branch or if a jump is resulting in an element already added. However, if the jump is invalid which means jump direction does not have an element, this does not throw an error.
    Shivkumar Iyer
    Tested branch_jump method
    Shivkumar Iyer
    Tested jump_move method. jump_move looks like a fairly badly designed method. The idea is that when a jump is encountered, this should take me to the cell after the corresponding jump. If the originating element is not a jump, it throws an exception. Too many arguments seem to be passed to the method - element coordinates, position of other jump. If the element is passed, the other jump should be inferred. Also, no error …
    Shivkumar Iyer
    Tested node_checking function Checks whether an element is a node if it is surrounded by more than 3 elements having components. However, the node itself is not checked for being a component. This check is performed in the parent function.
    Shivkumar Iyer
    Tested jump_node_check. This checks if a jump label is next to a node. It starts with a node and all the directions in which a node has a component. For each direction, it checks whether the adjacent cell has a jump label. Seems confusing as when looking at directions, I assumed it was the direction from a jump label. But it was the node instead.
    Shivkumar Iyer
    Tested jump_checking -is a jump legal If a jump is next to a node, it is not an error. Check later if this results in a network problem.
    Shivkumar Iyer
    Compact version of jump sanity check
    Shivkumar Iyer
    Started testing jump methods - jump_sanity
    Shivkumar Iyer
    Grouped csv manipulation tests under a class
    Shivkumar Iyer
    Tested csv manipulations The methods related to CSV file manipulations have been tested. Next comes the nodes, branches and loops.
    Shivkumar Iyer
    Tested reading_params method
    Shivkumar Iyer
    Testing scrub_elements The command line version was still having the older version of the function that did not use strip() but checks for spaces and returns.
    Shivkumar Iyer
    Tested CSV conversion and reader Converted CSV elements back and forth to ensure conversion from tuple to string and vice versa works. Checked out the csv reader and passed in a dummy file to test with the required output.
    Shivkumar Iyer
    First test network reader csv_element_2D Managed to setup the test environment for pytest and Django's testing that is based on unittest.
    Shivkumar Iyer
    Starting unit tests The major challenge seems to be in testing methods in modules with other imports. An import automatically executes everything in the module including the imports and so eventually circular imports fail.