@@ -335,22 +335,22 @@ mycrate = { path = '..' }
335
335
### Built-in runner
336
336
337
337
The builtin Alire test runner provides a simple way to run ` .adb ` files as
338
- separate tests. It requires setting up a subcrate (let's name it ` mycrate_test `
339
- in our example) with a GPR file that defines its executables in a specific way:
338
+ separate tests. It requires setting up a subcrate, with a GPR file that defines
339
+ its executables in a specific way:
340
340
341
341
``` ada
342
- with "config/mycrate_tests_list_config .gpr"
342
+ with "config/<cratename>_list_config .gpr"
343
343
-- ...
344
- for Main use Mycrate_Tests_List_Config .Test_Files;
344
+ for Main use <Cratename>_List_Config .Test_Files;
345
345
```
346
346
347
347
This subcrate is automatically generated by ` alr init ` (unless one specifies
348
348
` --no-test ` ), so you will not have to write all of this by hand.
349
349
350
350
When running the ` alr test ` command, it will put every ` .adb ` file in ` /src ` in
351
- the generated ` config/<cratename>_list_config.gpr ` file, then build them all and
352
- run them in parallel in accordance with the ` jobs ` parameter (either from the
353
- manifest or the command line).
351
+ the generated ` config/<cratename>_list_config.gpr ` file, then build them all
352
+ and run them in parallel in accordance with the ` jobs ` parameter (either from
353
+ the manifest or the command line).
354
354
355
355
Support code for the tests can be placed into another folder, like ` /common ` ;
356
356
only ` .adb ` files in ` /src ` are counted as tests. Each test must be a main
0 commit comments