[yt-dev] Frontend tests

Matthew Turk matthewturk at gmail.com
Wed Aug 28 13:46:10 PDT 2013


Hi all,

I'd like to bring up the topic of frontend tests.

As it stands, we have answer tests for a few frontends, and a large
amount of sample data for other frontends.  The answer tests are fine,
but they are also somewhat ... difficult to write and come up with.  I
believe that they should still exist inside the main repo.

However, what I'd like to propose is a new repository
("frontend_tests" perhaps?) that includes scripts for each frontend
that load data, save images, and that we will then *version* a set of
results images and data inside.  This repository will be allowed to
grow larger than we'd like the main yt repository to grow, and it
would also mean that we could use normal pull request mechanisms for
updating results, rather than AWS S3 uploads with keys and so on.

My idea was that it would include something like a helper function
library (for common routines like "what is the current version of the
code" and "commit a new version of this image") and would also include
image-generating scripts and mechanisms for viewing images.  The idea
is that you would run a script at the top level and it would spit out
a bunch of images or data, and there would be templates of HTML that
you could view old-versus-new.  This could then be integrated into our
CI system (I spoke with Kacper about this previously).  It would serve
two purposes:

1) Display results as a function of the current iteration (these
results would not be quantitatively assessed; this would be the
function of the answer testing we already have)
2) Tell us if loading a dataset or frontend breaks
3) Light quantitative result analysis

I'm planning to create a repository similar to this regardless (for
demonstrating frontend scripts) but I'm bringing it to the list to see
if it is alright to host under the main yt_analysis team on Bitbucket
and to integrate into testing.  Does this appeal to anyone?  I imagine
it could be much simpler than creating new answer tests.

-Matt



More information about the yt-dev mailing list