Skip to content

Commit da192ec

Browse files
committed
Modified tests
1 parent 944a6a8 commit da192ec

36 files changed

+57
-122
lines changed

Test_Scripts/IndustrialMicrogridUnitTest.m

Lines changed: 0 additions & 46 deletions
This file was deleted.

Test_Scripts/RemoteMicrogridUnitTest.m

Lines changed: 0 additions & 46 deletions
This file was deleted.

Test_Scripts/TechnoEconomicAnalysisUnitTest.m renamed to Tests/BaseTest.m

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
classdef TechnoEconomicAnalysisUnitTest < matlab.unittest.TestCase
2-
%% Class implementation of unit test
3-
4-
% Copyright 2024 The MathWorks, Inc.
1+
classdef BaseTest < matlab.unittest.TestCase
2+
%Tester
53
properties
64
openfigureListBefore;
75
openModelsBefore;
@@ -36,16 +34,5 @@ function closeOpenedModels(testCase)
3634
close_system(modelsOpenedByTest, 0);
3735
end
3836
end
39-
methods (Test)
40-
41-
function test_TechnoEconomicAnalysis(~)
42-
% Exercise the script TechnoEconomicAnalysis
43-
TechnoEconomicAnalysis;
44-
end
4537

46-
function test_SolarMPPTVoltage(~)
47-
% Exercise the script SolarMPPTVoltage
48-
SolarMPPTVoltage;
49-
end
50-
end
5138
end
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
classdef IndustrialMicrogridWorkflowTest < BaseTest
2+
%% Industrial Tests for Remote Microgrid
3+
4+
% Copyright 2023-2026 The MathWorks, Inc.
5+
6+
methods (Test)
7+
function testIndustrialMicrogrid(~)
8+
IndustrialMicrogridDesign
9+
end
10+
end
11+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
classdef RemoteMicrogridWorkflowTest < BaseTest
2+
%% Workflow Tests for Remote Microgrid
3+
4+
% Copyright 2023-2026 The MathWorks, Inc.
5+
6+
methods (Test)
7+
function RemoteMicrogrid_Test(~)
8+
RemoteMicrogridDesign
9+
end
10+
end
11+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
classdef TechnoEconomicAnalysisWorkflowTest < BaseTest
2+
%% Class implementation of unit test
3+
4+
% Copyright 2024-2026 The MathWorks, Inc.
5+
6+
methods (Test)
7+
8+
function test_TechnoEconomicAnalysis(~)
9+
% Exercise the script TechnoEconomicAnalysis
10+
TechnoEconomicAnalysis;
11+
end
12+
13+
function test_SolarMPPTVoltage(~)
14+
% Exercise the script SolarMPPTVoltage
15+
SolarMPPTVoltage;
16+
end
17+
end
18+
end

Test_Scripts/TestRunnerIndustrialMicrogrid.m renamed to Tests/TestRunnerIndustrialMicrogrid.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%% Create test suite
1212

1313
suite = matlab.unittest.TestSuite.fromFile(...
14-
fullfile(topFolder, "Test_Scripts", "IndustrialMicrogridUnitTest.m"));
14+
fullfile(topFolder, "Test_Scripts", "IndustrialMicrogridWorkflowTest.m"));
1515

1616
%% Create test runner
1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%% Create test suite
1212

1313
suite = matlab.unittest.TestSuite.fromFile(...
14-
fullfile(topFolder, "Test_Scripts", "RemoteMicrogridUnitTest.m"));
14+
fullfile(topFolder, "Test_Scripts", "RemoteMicrogridWorkflowTest.m"));
1515

1616
%% Create test runner
1717

Test_Scripts/TestRunnerTechnoEconomicAnalysis.m renamed to Tests/TestRunnerTechnoEconomicAnalysis.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%% Create test suite
1212

1313
suite = matlab.unittest.TestSuite.fromFile(...
14-
fullfile(topFolder, "Test_Scripts", "TechnoEconomicAnalysisUnitTest.m"));
14+
fullfile(topFolder, "Test_Scripts", "TechnoEconomicAnalysisWorkflowTest.m"));
1515

1616
%% Create test runner
1717

0 commit comments

Comments
 (0)