Skip to content

Commit

Permalink
Add comments about the expected file system
Browse files Browse the repository at this point in the history
Build the Java and MEX files
Setup the path
  • Loading branch information
petercorke committed Feb 24, 2019
1 parent b3f1090 commit 3bd7fbb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions unit_test/RunAllTests.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
% run the tests for Travis CI
%
% File system looks like this:
% robotics-toolbox-matlab
% robotics-toolbox-matlab/unit_test ** WORKING folder
% lib/toolbox-common
% lib/spatial-math-toolbox

import matlab.unittest.plugins.CodeCoveragePlugin
import matlab.unittest.plugins.codecoverage.CoberturaFormat
import matlab.unittest.TestRunner
Expand All @@ -11,6 +19,23 @@
plugin = CodeCoveragePlugin.forFolder('..', 'Producing',reportFormat);
runner.addPlugin(plugin);

% setup the path

% for other toolboxes
addpath ../../lib/toolbox-common-matlab
addpath ../../lib/spatial-math

% for RTB
addpath ..
addpath ../models
addpath ../data
addpath ../simulink

% build the MEX file
cd ../mex
make
cd ..

% Run all unit tests in my repository.
results = runner.run(suite);

Expand Down

0 comments on commit 3bd7fbb

Please sign in to comment.