Skip to content

Commit 9717dd5

Browse files
committed
Update CI for project
1 parent 18c1bab commit 9717dd5

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

Tests/ComponentTest/GripperComponentTest.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function setupBlockForTesting(test)
4646
function TestSimulationWithDefaultValues(test)
4747
% Test that the custom block simulates without any error or
4848
% warning for the default values.
49-
49+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
5050
test.verifyWarningFree(@()sim(test.modelname),...
5151
['The model with block- ''', test.blockname, ''' should simulate without any errors and/or warnings.']);
5252

@@ -61,6 +61,7 @@ function TestSimulationWithCustomValues(test)
6161
set_param(test.blockpath, 'wFinger', '0.5');
6262
set_param(test.blockpath, 'sFingerMax', '0.5');
6363
set_param(test.blockpath, 'ptcldDensity', '6');
64+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
6465

6566
% Verify model simulates without warning
6667
test.verifyWarningFree(@()sim(test.modelname),...

Tests/ComponentTest/LLinkComponentTest.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function TestSimulationWithDefaultValues(test, connConfig, inertiaType)
6868
% Set connection configuration and inertia type
6969
set_param(test.blockpath, 'connConfigLLLink', connConfig, 'connConfigRLLink', connConfig);
7070
set_param(test.blockpath, 'inertiaType', inertiaType);
71+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
7172

7273
% Verify
7374
test.verifyWarningFree(@()sim(test.modelname),...
@@ -82,7 +83,8 @@ function TestSimulationWithCustomValues(test)
8283
% Set custom parameters
8384
set_param(test.blockpath, 'linkRadius', '0.05');
8485
set_param(test.blockpath, 'member1TotalLength', '1');
85-
set_param(test.blockpath, 'member2TotalLength', '0.8')
86+
set_param(test.blockpath, 'member2TotalLength', '0.8');
87+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
8688

8789
% Verify model simulates without warning
8890
test.verifyWarningFree(@()sim(test.modelname),...

Tests/ComponentTest/LinkComponentTest.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function TestSimulationWithDefaultValues(test, connConfig, inertiaType)
6767
% Set connection configuration and inertia type
6868
set_param(test.blockpath, 'connConfigL', connConfig, 'connConfigR', connConfig);
6969
set_param(test.blockpath, 'inertiaType', inertiaType);
70+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
7071

7172
% Verify
7273
test.verifyWarningFree(@()sim(test.modelname),...
@@ -80,7 +81,8 @@ function TestSimulationWithCustomValues(test)
8081

8182
% Set custom parameters
8283
set_param(test.blockpath, 'linkRadius', '0.5');
83-
set_param(test.blockpath, 'linkLength', '10')
84+
set_param(test.blockpath, 'linkLength', '10');
85+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
8486

8587
% Verify model simulates without warning
8688
test.verifyWarningFree(@()sim(test.modelname),...

Tests/ComponentTest/RotatingBaseWithBracketTest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function TestSimulationWithDefaultValues(test, connConfig, inertiaType)
6060
% Set connection configuration and inertia type
6161
set_param(test.blockpath, 'connConfig', connConfig);
6262
set_param(test.blockpath, 'baseInertiaType', inertiaType, 'rotorInertiaType', inertiaType);
63+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
6364

6465
test.verifyWarningFree(@()sim(test.modelname),...
6566
['The model with block- ''', test.blockname, ''' should simulate without any errors and/or warnings.']);
@@ -73,6 +74,7 @@ function TestSimulationWithCustomValues(test)
7374
% Set custom parameters
7475
set_param(test.blockpath, 'baseRadius', '0.5');
7576
set_param(test.blockpath, 'baseTotalLength', '1.25');
77+
set_param(test.modelname,'SimMechanicsOpenEditorOnUpdate','off');
7678

7779
% Verify model simulates without warning
7880
test.verifyWarningFree(@()sim(test.modelname),...

Tests/ModelSimulationTest/ModelSimulationUnitTest.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function RobotStackingModel(testCase)
1414
modelname = "StackingRobotModel";
1515
load_system(modelname)
1616
testCase.addTeardown(@()close_system(modelname, 0));
17+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
1718

1819
% Simulate model
1920
sim(modelname);
@@ -26,6 +27,7 @@ function sm_abbIrb120_1_RawImportModel(testCase)
2627
modelname = "sm_abbIrb120_1_RawImport";
2728
load_system(modelname)
2829
testCase.addTeardown(@()close_system(modelname, 0));
30+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
2931

3032
% Simulate model
3133
sim(modelname);
@@ -38,6 +40,7 @@ function ParametricRobotModel(testCase)
3840
modelname = "ParametricRobotModel";
3941
load_system(modelname)
4042
testCase.addTeardown(@()close_system(modelname, 0));
43+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
4144

4245
% Simulate model
4346
sim(modelname);
@@ -50,6 +53,7 @@ function ParametricRobotWithGripperPayloadsModel(testCase)
5053
modelname = "ParametricRobotWithGripperPayloads";
5154
load_system(modelname)
5255
testCase.addTeardown(@()close_system(modelname, 0));
56+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
5357

5458
% Simulate model
5559
sim(modelname);
@@ -62,6 +66,7 @@ function ParametricRobotWithMassModel(testCase)
6266
modelname = "ParametricRobotWithMass";
6367
load_system(modelname)
6468
testCase.addTeardown(@()close_system(modelname, 0));
69+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
6570

6671
% Simulate model
6772
sim(modelname);
@@ -74,6 +79,7 @@ function ActuatorRatingModel(testCase)
7479
modelname = "ActuatorRatingModel";
7580
load_system(modelname)
7681
testCase.addTeardown(@()close_system(modelname, 0));
82+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
7783

7884
% Simulate model
7985
sim(modelname);
@@ -86,6 +92,7 @@ function StackingModel(testCase)
8692
modelname = "StackingModel";
8793
load_system(modelname)
8894
testCase.addTeardown(@()close_system(modelname, 0));
95+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
8996

9097
% Simulate model
9198
sim(modelname);
@@ -98,6 +105,7 @@ function TorqueControlConfigModel(testCase)
98105
modelname = "TorqueControlConfig";
99106
load_system(modelname)
100107
testCase.addTeardown(@()close_system(modelname, 0));
108+
set_param(modelname,'SimMechanicsOpenEditorOnUpdate','off');
101109

102110
% Get simulation input object
103111
simIn = Simulink.SimulationInput(modelname);

0 commit comments

Comments
 (0)