Testing

JavaScript

The final home of the JavaScript code performing the automatic matching algorithm is stored insinde the localised content of the administrator's matching page. However, during the development of the algorithm, the code was tested extensively in the node.js environment. This is because errors are much more verbose and useful than browser's consoles, and code could be quickly edited and re-tested, rather than waitng for a browser to load the page again every single time.

Along the way, JSON files were generated containing various different pieces of information, ouputted from each stage of the algorithm. This was done since JSON is a very human-readble data format, and if a non-crashing, logic error ocurred during execution, the multiple output files could be traced back until the error was identified.