1 |
Am 08.01.2021 um 01:14 schrieb Conrad Kostecki: |
2 |
> During migration of dev-lua/* ebuilds to slotted lua, I noticed, that |
3 |
> many ebuilds use 'dev-lua/busted' for running tests. This change adds |
4 |
> support for running a test-runner, at first only 'busted' for now. |
5 |
> Also a non-color and plaintext output will be used for the test-runner 'busted'. |
6 |
> |
7 |
> This is basically a copy of the test-runner section, written by mgorny, |
8 |
> which already exists in 'distutils-r1', but modified and adapted to lua. |
9 |
> |
10 |
> In order to use this feature, you can define 'lua_enable_tests busted' |
11 |
> to setup everything needed for tests and run them. By default, |
12 |
> 'dev-lua/busted' assumes, that tests are in the 'spec' folder. |
13 |
> |
14 |
> If this is not the case, you can add a second argument to specify a |
15 |
> different folder. For example, if the folder is called 'foo', you can |
16 |
> just run 'lua_enable_tests busted foo'. |
17 |
> |
18 |
> More test-runners can be added in future, if needed. |
19 |
> |
20 |
> PATCH v2 has two changes: |
21 |
> - removed EAPI condition, as lua-utils is EAPI=7 only. |
22 |
> - make test_directoy as a local variable and use eval in src_test to |
23 |
> read it. |
24 |
> |
25 |
> PATCH v3 has the right patch, as v2 was wrong. |
26 |
|
27 |
Merged! |