Skip to content

Commit 92d5ec6

Browse files
committed
Added script for testing entire repo
1 parent f43146f commit 92d5ec6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/runall.m

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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?

0 commit comments

Comments
 (0)