Git Product home page Git Product logo

exampletesttoolbox's Introduction

ExampleTestToolbox

In the ISET related programs (isetbio, isetcam, iset3d, isetcloud ...) we insert block comments with runnable examples. The functions in this toolbox reads and runs those examples, reporting on errors.

Examples are usually embedded near the top of the program, separated from the top comments. The syntax for the example code is

% Examples:
%{
... first example code here ...
%}
%{
... next example code here ...
%}

RunExamples

This function takes either a function or a directory as an argument. RunExamples determines whether the input is a file or a directory and then invokes the functions ExecuteExamplesInFunction or ExecuteExamplesInDirectory.

PrintExamples

This function prints the examples in a specific file (not in a directory).

exampletesttoolbox's People

Contributors

davidbrainard avatar wandell avatar

Watchers

James Cloos avatar  avatar  avatar Jonathan Winawer avatar Michael Perry avatar Franco Pestilli avatar Nicolas Cottaris avatar Haomiao Jiang avatar  avatar E.J. Chichilnisky avatar Xiaomao Ding avatar Fred Rieke avatar James Golden avatar  avatar

exampletesttoolbox's Issues

Examples in ETTB

Ironically, one of the examples in the ETTB doesn't get executed properly. This is the on in PrintExamples, when run from the examples in ExecuteExamplesInDirectory. As far as I can tell, this problem has been there for a while and does not seem to affect the way we are using the toolbox.

More generally, the examples in ETTB rely on ISETBio being on the path. We should set up a test suite that works when ETTB is on the path stand alone, and then make sure everything works. Sigh. Not today.

External dependency

I use the ExampleTestToolbox separately from the isetbio repositories. Previously, this repository stood alone as a functioning toolbox, and I was able to call functions (e.g.,RunExamples) with only the ExampleTestToolbox on my path. Today I attempted this and received the error that ieParamFormat was not available. I subsequently found this routine in isetcam-->utility-->programming. Adding this directory to my path now allows ExampleTestToolbox to execute.

I have not yet explored if multiple functions from isetcam are now needed. If possible, it would be ideal if ExampleTestToolbox did not have external dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.