File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ %% Script for running all Rigbox tests
2+ % To be called for code checks and the like
3+ % TODO May become a function
4+ % TODO May add flags for levels of testing
5+ % TODO Method setup in dat_test may become global fixture
6+ % TODO Delete sinusoidLayer_test from this folder
7+ % TODO Deal with directory changes
8+ main_tests = testsuite ;
9+
10+ %% Gather signals tests
11+ root = getOr(dat .paths ,' rigbox' );
12+ signals_tests = testsuite(fullfile(root , ' signals' , ' tests' ));
13+
14+ %% Gather alyx-matlab tests
15+ alyx_tests = testsuite(fullfile(root , ' alyx-matlab' , ' tests' ));
16+
17+ %% Filter & run
18+ % the suite is automatically sorted based on shared fixtures. However, if
19+ % you add, remove, or reorder elements after initial suite creation, call
20+ % the sortByFixtures method to sort the suite.
21+ all_tests = [main_tests signals_tests alyx_tests ];
22+ results = run(all_tests );
23+
24+ %% Diagnostics
25+ failed = {all_tests([results .Failed ]).Name}' ;
26+ % Load benchmarks and compare for performance tests?
You can’t perform that action at this time.
0 commit comments