Revision as of 15:08, 20 June 2023 by WikiSysop (talk | contribs) (Text replacement - "Carbonates and Biogenics Focus Research Group, " to "")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
CSDMS 2020 Webinars

Level Up! Your Scientific Coding: Unit Testing

Registration link:

Mark Piper

Univ. of Colorado, INSTAAR, CSDMS, United States
Benjamin Campforts Univ. of Colorado, INSTAAR, CSDMS United States

Why is unit testing important? We'll consider this from the perspective of a grad student starting a research project, a postdoc scrambling to publish papers, a researcher starting a collaboration, and a professor leading a group of students and postdocs. (15 min)

Where can you find good, reliable information on unit testing? The internet is filled with content from others who have devoted their careers to this topic. We'll show you where we think are the best places to get more information. (5 min)

How does unit testing work? We'll give a concrete demonstration of unit testing in Python with pytest. Again, others have done this better, but seeing it in action may help you get a jump on using it yourself. (10 min)

Please acknowledge the original contributors when you are using this material. If there are any copyright issues, please let us know ( and we will respond as soon as possible.

Of interest for:
  • Terrestrial Working Group
  • Coastal Working Group
  • Marine Working Group
  • Education and Knowledge Transfer (EKT) Working Group
  • Cyberinformatics and Numerics Working Group
  • Hydrology Focus Research Group
  • Chesapeake Focus Research Group
  • Critical Zone Focus Research Group
  • Human Dimensions Focus Research Group
  • Geodynamics Focus Research Group
  • Ecosystem Dynamics Focus Research Group
  • Coastal Vulnerability Initiative
  • Continental Margin Initiative
  • Artificial Intelligence & Machine Learning Initiative
  • Modeling Platform Interoperability Initiative