Skip to content

Add black box tests #4

Description

@mec07

This is probably the most important issue. PyLATO is missing basic automated validity tests.

Here are some ideas of some test cases (of course there are so many possibilities):

  • test cases that are already in PLATO
  • collinear tight binding calculations of two atoms
  • collinear tight binding calculations of an infinite line of atoms
  • collinear tight binding calculations of two atoms in PBCs
  • noncollinear tight binding calculation of two atoms (should be the same as the collinear)

My personal preference would be to use the python behave (https://behave.readthedocs.io/en/latest/) testing framework; however if someone else were to help with this, e.g. @horsfielda, then of course they could choose how to do this.

The .circleci/config.yml file should be updated to run these tests while calculating the coverage, then combine the coverage with the unit tests coverage and then push the combined coverage to codecov.io.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions