|
|
|
@ -14,7 +14,7 @@ let loadLocation = __SOURCE_DIRECTORY__ + "/LoadingTestArea"
|
|
|
|
|
let saveLocation = __SOURCE_DIRECTORY__ + "/SavingTestArea" |
|
|
|
|
let random = Random() |
|
|
|
|
|
|
|
|
|
(*Resetting the Testing Area Folders Scripts |
|
|
|
|
(* Resetting the Testing Area Folders Scripts |
|
|
|
|
=============================================================================== |
|
|
|
|
The following scripts are for when you need to "manually" clear out the |
|
|
|
|
LoadingTestArea and SavingTestArea folders. If you do not want to open up the |
|
|
|
@ -93,4 +93,22 @@ let populateLoadingTestArea () =
|
|
|
|
|
|
|
|
|
|
// You should only need this once. |
|
|
|
|
// Make sure you have passed the above into F# Interactive. |
|
|
|
|
populateLoadingTestArea () |
|
|
|
|
populateLoadingTestArea () |
|
|
|
|
|
|
|
|
|
(* Creating the Saving Test Area Script |
|
|
|
|
============================================================================== |
|
|
|
|
This bit of code is for creating the SavingTestArea folder which Test Centre |
|
|
|
|
will use when it runs its tests. You will normally only need to run this code |
|
|
|
|
when you have just cloned this repository or you accidently deleted said |
|
|
|
|
fodler. In other words, you should only need to use it once. *) |
|
|
|
|
|
|
|
|
|
let createSavingTestArea () = |
|
|
|
|
match Directory.Exists saveLocation with |
|
|
|
|
| false -> |
|
|
|
|
Directory.CreateDirectory saveLocation |> ignore |
|
|
|
|
printfn "SavingTestArea created." |
|
|
|
|
| _ -> printfn "SavingTestArea already exists." |
|
|
|
|
|
|
|
|
|
(* Before calling this function, make sure the test checking this folder exists |
|
|
|
|
is failing first. *) |
|
|
|
|
createSavingTestArea () |