Skip to content

Commit

Permalink
Only use lower case in JSON keys otherwise they won't match in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Muriel-Salvan committed Jan 20, 2021
1 parent 4457493 commit a752401
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Data/Source/Scripts/AutoTest_Suite_Locations.psc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endFunction
; * *testName* (string): The test name to run
function RunTest(string testName)
string[] fields = StringUtil.Split(testName, "/")
string panoramicTimeSecsStr = GetConfig("PanoramicTimeSecs")
string panoramicTimeSecsStr = GetConfig("panoramic_time_secs")
if panoramicTimeSecsStr == ""
panoramicTimeSecsStr = "5.0"
endIf
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,16 @@ Example of Run file for this test, in `SKSE\Plugins\StorageUtilData\AutoTest_Loc
![Example of Locations test](https://raw.githubusercontent.com/Muriel-Salvan/AutoTest/master/docs/locations_example.gif)

The `Locations` tests can be configurable and accepts the following configuration options:
* `PanoramicTimeSecs`: Number of seconds (as a float in a string) taken by the test to make a quick panoramic turn around the player. Defaults to `"5.0"`.
* `panoramic_time_secs`: Number of seconds (as a float in a string) taken by the test to make a quick panoramic turn around the player. Defaults to `"5.0"`.

Example of Config file for this tests suite, setting the panoramic time to 30 seconds, in `SKSE\Plugins\StorageUtilData\AutoTest_Locations_Config.json`:
```json
{
"string": {
"panoramic_time_secs": "30.0"
}
}
```

### The in-game menu

Expand Down

0 comments on commit a752401

Please sign in to comment.