- Timestamp:
- 01/16/15 14:05:23 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 2 added
- 8 deleted
- 2 edited
- 14 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GAQAPScriptTest.cs
r11787 r11789 73 73 #endregion 74 74 #region Code 75 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);75 script.Code = ScriptSources.GAQAPScriptSource; 76 76 #endregion 77 77 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GUIAutomationScriptTest.cs
r11787 r11789 31 31 private const string ScriptItemName = "GUI Automation Script"; 32 32 private const string ScriptItemDescription = "A script that runs a genetic algorithm on a traveling salesman problem with 5 different settings for population sizes and with 10 repetitions, then opens a bubble chart of the results and chooses the appropriate values for x and y axis automatically"; 33 private const string ExperimentVariableName = "experiment";34 33 35 34 [TestMethod] … … 48 47 }; 49 48 #region Code 50 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);49 script.Code = ScriptSources.GUIAutomationScriptSource; 51 50 #endregion 52 51 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFClassificationScriptTest.cs
r11787 r11789 73 73 #endregion 74 74 #region Code 75 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);75 script.Code = ScriptSources.GridSearchRFClassificationScriptSource; 76 76 #endregion 77 77 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFRegressionScriptTest.cs
r11787 r11789 73 73 #endregion 74 74 #region Code 75 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);75 script.Code = ScriptSources.GridSearchRFRegressionScriptSource; 76 76 #endregion 77 77 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchSVMClassificationScriptTest.cs
r11787 r11789 73 73 #endregion 74 74 #region Code 75 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);75 script.Code = ScriptSources.GridSearchSVMClassificationScriptSource; 76 76 #endregion 77 77 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchSVMRegressionScriptTest.cs
r11787 r11789 73 73 #endregion 74 74 #region Code 75 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);75 script.Code = ScriptSources.GridSearchSVMRegressionScriptSource; 76 76 #endregion 77 77 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/OSGARastriginScriptTest.cs
r11787 r11789 72 72 #endregion 73 73 #region Code 74 script.Code = Script ingUtils.LoadScriptCodeFromFile(ScriptFileName);74 script.Code = ScriptSources.OSGARastriginScriptSource; 75 75 #endregion 76 76 return script; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/ScriptingUtils.cs
r11735 r11789 21 21 22 22 using System; 23 using System.IO;24 23 using System.Threading; 25 24 using HeuristicLab.Scripting; … … 47 46 return (T)a.VariableStore[resultName]; 48 47 } 49 50 public static string LoadScriptCodeFromFile(string scriptName) {51 string path = Path.Combine(ScriptSourcesDirectory, scriptName + ScriptSourceFileExtension);52 return File.ReadAllText(path);53 }54 48 } 55 49 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r11703 r11789 522 522 <Compile Include="HeuristicLab.Problems.VehicleRouting-3.4\VRPInstancesTest.cs" /> 523 523 <Compile Include="HeuristicLab.Random-3.3\RandomEnumerableSampleTest.cs" /> 524 <Compile Include="HeuristicLab.Scripting-3.3\Scripts\GAQAPScriptTest.cs" /> 525 <Compile Include="HeuristicLab.Scripting-3.3\Scripts\GridSearchRFClassificationScriptTest.cs" /> 526 <Compile Include="HeuristicLab.Scripting-3.3\Scripts\GridSearchRFRegressionScriptTest.cs" /> 527 <Compile Include="HeuristicLab.Scripting-3.3\Scripts\GridSearchSVMClassificationScriptTest.cs" /> 528 <Compile Include="HeuristicLab.Scripting-3.3\Scripts\GridSearchSVMRegressionScriptTest.cs" /> 524 <Compile Include="HeuristicLab.Scripting-3.3\GAQAPScriptTest.cs" /> 525 <Compile Include="HeuristicLab.Scripting-3.3\GridSearchRFClassificationScriptTest.cs" /> 526 <Compile Include="HeuristicLab.Scripting-3.3\GridSearchRFRegressionScriptTest.cs" /> 527 <Compile Include="HeuristicLab.Scripting-3.3\GridSearchSVMClassificationScriptTest.cs" /> 528 <Compile Include="HeuristicLab.Scripting-3.3\GridSearchSVMRegressionScriptTest.cs" /> 529 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\ScriptSources.Designer.cs"> 530 <AutoGen>True</AutoGen> 531 <DesignTime>True</DesignTime> 532 <DependentUpon>ScriptSources.resx</DependentUpon> 533 </Compile> 529 534 <Compile Include="HeuristicLab.Scripting-3.3\ScriptingUtils.cs" /> 530 <Compile Include="HeuristicLab.Scripting-3.3\ Scripts\GUIAutomationScriptTest.cs" />531 <Compile Include="HeuristicLab.Scripting-3.3\ Scripts\OSGARastriginScriptTest.cs" />535 <Compile Include="HeuristicLab.Scripting-3.3\GUIAutomationScriptTest.cs" /> 536 <Compile Include="HeuristicLab.Scripting-3.3\OSGARastriginScriptTest.cs" /> 532 537 <Compile Include="Properties\AssemblyInfo.cs" /> 533 <Compile Include=" Test Resources\Script Sources\GridSearch_RF_Classification_Script.cs">534 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 535 </Compile> 536 <Compile Include=" Test Resources\Script Sources\GridSearch_RF_Regression_Script.cs">537 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 538 </Compile> 539 <Compile Include=" Test Resources\Script Sources\GridSearch_SVM_Classification_Script.cs">540 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 541 </Compile> 542 <Compile Include=" Test Resources\Script Sources\GridSearch_SVM_Regression_Script.cs">543 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 544 </Compile> 545 <Compile Include=" Test Resources\Script Sources\GA_QAP_Script.cs">546 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 547 </Compile> 548 <Compile Include=" Test Resources\Script Sources\OSGA_Rastrigin_Script.cs">549 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 550 </Compile> 551 <Compile Include=" Test Resources\Script Sources\GUI_Automation_Script.cs">538 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GridSearchRFClassificationScriptSource.cs"> 539 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 540 </Compile> 541 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GridSearchRFRegressionScriptSource.cs"> 542 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 543 </Compile> 544 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GridSearchSVMClassificationScriptSource.cs"> 545 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 546 </Compile> 547 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GridSearchSVMRegressionScriptSource.cs"> 548 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 549 </Compile> 550 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GAQAPScriptSource.cs"> 551 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 552 </Compile> 553 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\OSGARastriginScriptSource.cs"> 554 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 555 </Compile> 556 <Compile Include="HeuristicLab.Scripting-3.3\Script Sources\GUIAutomationScriptSource.cs"> 552 557 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 553 558 </Compile> … … 592 597 </Content> 593 598 </ItemGroup> 594 <ItemGroup /> 599 <ItemGroup> 600 <EmbeddedResource Include="HeuristicLab.Scripting-3.3\Script Sources\ScriptSources.resx"> 601 <Generator>ResXFileCodeGenerator</Generator> 602 <LastGenOutput>ScriptSources.Designer.cs</LastGenOutput> 603 <CustomToolNamespace>HeuristicLab.Tests</CustomToolNamespace> 604 </EmbeddedResource> 605 </ItemGroup> 595 606 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 596 607 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.