spacetelescope / style-guides

An opinionated guide on how we work.
Creative Commons Attribution 4.0 International
56 stars 33 forks source link

Testing workflows #7

Closed stscicrawford closed 5 years ago

stscicrawford commented 6 years ago

Add information about testing workflows.

stscicrawford commented 6 years ago

Some example:

@stsci-hack https://innerspace.stsci.edu/display/SSR/Adding+New+Tests%3A+A+User%27s+Guide

stscicrawford commented 6 years ago

Comments about testing workflows from #9

Also maybe mention something like "use urllib/astroquery/astropy.utils.data, not roll-your-own-downloader when remote data is required"?

One step further might even be "and use some pytest markers to indicate that these require downloading" - the astropy machinery for this is a lot easier to integrate now that it is a stand-alone and does not require the helpers.

pllim commented 6 years ago

cc @bhilbert4

pllim commented 6 years ago

Testing can cover several things:

pllim commented 6 years ago

Also mention different CI services to choose from:

sean-lockwood commented 6 years ago

@pllim I might not understand the scope of this guide, but isn't the Institute trying to limit CI tools to Jenkins (for internal projects) and Travis CI (for outside collaborative projects)?

pllim commented 6 years ago

And links to pytest resources.And some plugins that might be useful for pytest:

pllim commented 6 years ago

Re: limit CI tools -- but does that mean we should never test under Windows? :woman_shrugging: (this is when I slowly back away towards the door)

pllim commented 6 years ago

Also guideline for when to bundle test data with the package, and when to use "big data" solution?

stscicrawford commented 5 years ago

I've assigned @pllim to take a first draft. After that is available, we can then iterate on it and add more material

pllim commented 5 years ago

@drdavella , want to be co-author? 😉

drdavella commented 5 years ago

Sure, I'm happy to help and/or review.

pllim commented 5 years ago

@stscicrawford , is there a deadline for this...? :grimacing: