You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,14 +291,18 @@ For example, if the project defines a `main1.adb` and `main2.adb` located under
291
291
292
292
If you install GNATtest, the Ada & SPARK extension for VS Code will provide the following functionalities:
293
293
294
-
* The task `ada: Create/update test skeletons for the project` will call `gnattest` to create test skeletons for your project automatically. You can use standard VS Code task customization to configure command line arguments to your liking in a `tasks.json` file.
294
+
* The task `ada: Create or update GNATtest test framework` will call `gnattest` to create a test harness and test skeletons for your project automatically. You can use standard VS Code task customization to configure command line arguments to your liking in a `tasks.json` file.
295
+
296
+
* Once the test harness project is created, the task `ada: Build GNATtest test harness project` is provided automatically for building it. Command line arguments can be customized by configuring the task in a `tasks.json` file.
295
297
296
298
* Tests created with GNATtest will be loaded in the VS Code **Testing** view as follows.
297
299
298
300
<imgsrc="doc/gnattest-test-tree.png"width="650"alt="GNATtest Test Tree">
299
301
300
302
* Tests can be executed individually or in batch through the available buttons in the interface, or through the `Test: Run All Tests` command or related commands.
301
303
304
+
* Test execution always starts by executing the `ada: Build GNATtest test harness project` task to make sure that test executables are up to date.
305
+
302
306
* Test execution results are reflected in the test tree.
303
307
304
308
<imgsrc="doc/gnattest-results.png"width="500"alt="GNATtest Test Results">
@@ -308,8 +312,6 @@ GNATtest support has the following known limitations:
308
312
* The extension relies on the default conventions of GNATtest such as the naming, location and object directory of the test harness project.
309
313
If those aspects are configured or altered manually, the features may no longer work.
310
314
311
-
* Test execution always starts with a `gprbuild` call on the test harness project. It is not possible to disable that call or customize its arguments. This limitation will be lifted in future releases.
312
-
313
315
* Language support such as navigation and auto-completion is limited when editing test sources. A workaround is to modify the `ada.projectFile` setting to point to the test harness project created by GNATtest. That should restore language support when developing tests.
314
316
315
317
* Sections of test sources delimited by `begin read only` and `end read only` comments are not really protected from inadvertant edits.
0 commit comments