[Integration tests for GDScript documentation](https://docs.godotengine.org/en/latest/contributing/development/core_and_modules/unit_testing.html#integration-tests-for-gdscript)
The `script/completion` folder contains test for the GDScript autocompletion.
Each test case consists of at least one `.gd` file, which contains the code, and one `.cfg` file, which contains expected results and configuration. Inside of the GDScript file the character `➡` represents the cursor position, at which autocompletion is invoked.
The config file contains two section:
`[input]` contains keys that configure the test environment. The following keys are possible:
-`cs: boolean = false`: If `true`, the test will be skipped when running a non C# build.
-`use_single_quotes: boolean = false`: Configures the corresponding editor setting for the test.
-`scene: String`: Allows to specify a scene which is opened while autocompletion is performed. If this is not set the test runner will search for a `.tscn` file with the same basename as the GDScript file. If that isn't found either, autocompletion will behave as if no scene was opened.
`[output]` specifies the expected results for the test. The following key are supported:
-`include: Array`: An unordered list of suggestions that should be in the result. Each entry is one dictionary with the following keys: `display`, `insert_text`, `kind`, `location`, which correspond to the suggestion struct which is used in the code. The runner only tests against specified keys, so in most cases `display` will suffice.
-`exclude: Array`: An array of suggestions which should not be in the result. The entries take the same form as for `include`.
-`call_hint: String`: The expected call hint returned by autocompletion.
-`forced: boolean`: Whether autocompletion is expected to force opening a completion window.
Tests will only test against entries in `[output]` that were specified.
- All possible types: Test with all possible types that apply to the tested behavior. (For the last points testing against `SCRIPT` and `CLASS` should suffice. `CLASS` can be obtained through C#, `SCRIPT` through GDScript. Relying on autoloads to be of type `SCRIPT` is not good, since this might change in the future.)