Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Implement regression tests for gravmag.polyprism #395

Merged
merged 5 commits into from
May 5, 2017

Conversation

leouieda
Copy link
Member

@leouieda leouieda commented May 4, 2017

Simplify the tests of polyprism vs prism and add regression tests against saved
results, like was done for sphere in #364.

This allows us to test more complex polygonal prisms (an ellipse for example) and
catch regressions that might affect both polyprism and prism at the same time.

Test coverage decreases because the numpy alternative implementation is not
tested anymore. This will become the main version in #368 so it's not a big deal
right now.

Checklist:

  • Make tests for new code (at least 80% coverage)
  • Create/update docstrings
  • Include relevant equations and citations in docstrings
  • Docstrings follow the style conventions
  • Code follows PEP8 style conventions
  • Code and docs have been spellchecked
  • Include new dependencies in doc/install.rst, environment.yml, ci/requirements.txt.
  • Documentation builds properly (run cd doc; make locally)
  • Changelog entry (leave for last to avoid conflicts)

The tests were many different functions and weren't using numpy.testing.
This decreases test coverage because I don't test Cython vs numpy so the
numpy code goes untested.
@leouieda leouieda added this to the 0.6 milestone May 4, 2017
Include the data generation function in the test file and use pytest
fixtures to pass in the data to the test.
@leouieda leouieda merged commit 6f3d7fc into master May 5, 2017
@leouieda leouieda deleted the polyprism-regression-test branch May 5, 2017 14:16
leouieda added a commit that referenced this pull request May 5, 2017
Use the standard from #395 to implement the sphere regression tests.
Include code to generate the test data in the tests so they can be
updated if needed.
leouieda added a commit that referenced this pull request May 5, 2017
Use the standard from #395 to implement the sphere regression tests.
Include code to generate the test data in the tests so they can be
updated if needed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant