The purpose of this page is just to serve as todo or scratch pad for the development project and to list and share some ideas.

After making changes to the code and/or documentation, this page should remain on the wiki as a reminder of what was done and how it was done. However, there is no guarantee that this page is updated in the end to reflect the final state of the project

So chances are that this page is considerably outdated and irrelevant. The notes here might not reflect the current state of the code, and you should not use this as serious documentation.

Infrastructure for testing

FIXME See also testing

suggested directory layout


  • Needed for:

- code stability testing in general
- frequently occurring problems:
- small changes in existing code to evoke compatibility with a newly created function (prevent by testing before comitting)
- output structure is organised differently

  • Should be

- easy to use with as little hassle as possible during code modification
- low on memory: simulate (e.g. random) as many datasets as possible on the fly
- make use of mtest from MathWorks (link needed), especially for reference checks - should test as many different aspects of function as reasonable
- datasets that are used should be easy to replace without editing test-scripts (for updating)

  • Ideally after code-modification it should be:
<change made to topoplotER>
cd test
<process output>
<continue working>

  • Can look like

- 1 testscript per 1 .m file
- 1 datadirectory per 1 .m file (if not possible to simulate)
- per individual test in a testscript, one datafile

Directory/file layout example:

./test/testfreqanalysis_mtmconvol/data_dpss.m (or on the fly simulation of data)

  • Example test-script for testtopoplotER:
% test ctf275 layout
perform test 
perform reference check 

% test EEG1020 layout
<perform test> 
<perform reference check>

% test ER-input
perform test 
<perform test> 
<perform reference check>

% test TFR-input
<perform test> 
<perform reference check>

% test COMP-input
<perform test> 
<perform reference check>

% test HIGHLIGHTING-input
<perform test> 
<perform reference check>

  • Open issues and challenges

- how and what to reference with?
- make a distinction between low-level math tests (e.g. specest_mtmconvol) and high level tests (e.g. topoplotER)?
- how to reference the output of plotting functions?