CogTool-Modern / cogtool

Predictive human performance modeling for UI/UX design
https://www.cogtool.org
GNU Lesser General Public License v2.1
17 stars 1 forks source link

Testing & Code Coverage #64

Open justingeeslin opened 4 years ago

justingeeslin commented 4 years ago

Testing is very important for an open source project where you stand to pull in changes from many different authors. It is also important for any project where you have dependencies. (When you update dependencies, you'd like to know that everything still works the same as it did.) Testing in future versions of Java is also important for this project and any Java project.

Currently, CogTool has 0 unit tests. This issue is to change that. Below is a proposed priority list of testing the components of CogTool.

  1. CogTool "Core" - includes ACT-R model generation, import-export, visualization generation
  2. UI - includes SWT, menu commands, drag and drop editor

First, I'd like to create some unit tests in Java that cover the core components of CogTool.

I believe this will be especially important when it comes time to update ACT-R versions or other similar changes which stand to alter CogTool and its results in a major way.

justingeeslin commented 4 years ago

Created the first test for CogTool today in the feature branch: debugger-unit-test-init.

This branch also includes some changes for making debuggers happy.