Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I looked over some codes and structure in the OpenEarth repository, and got a couple questions/concerns/worries. I'd like to share them with you and, hopefully, you already have an answer to them.

Q) Test files. You suggested to add a function.m and function_test.m files into the same folder. I would like to suggest not to include _test files into the same folder with the main function. First, it creates a list of unnecessary files in the toolbox folder. Second, if you use a toolbox, then you probably have it in the path and then you can run test from any folder. Third, test files may require some additional data files, or preprocessing scripts etc. So, why put everything into one pile? Maybe it is better to create a special folder with test files only (even put them into subfolders if needed). The automatic testing routine would go through all subfolders and will run designated test files. Designated test files could be with _test suffix, or something more general as "runtest.m" if that particular folder contains a test for one specific function. That set of tests can be run by anyone to test if the entire collection is working, but not really necessary to do normal work.

...