Commit 22e31dc
authored
Use test_ prefix only for actual unit test files to allow the usage of Pytest (#81)
* Use test_ prefix only for actual unit test files
New developers and some test frameworks (e.g. pytest) search for files
named 'test_*.py' or '*_test.py' to discover test cases. However
currently the naming may be confusing as the files named 'test_*.py' contain
code to be executed by the unittests not the actual unittest itself.
This also leads to errors in e.g. the Python VSCode extension which
autodiscovers tests using the above naming scheme,
This renames all test_ files removing the prefix or adding bm_ as the
prefix for benchmark helpers together with a more descriptive name.
The main test entrypoint is now test_scorep.py.
No code changes (except where files were referenced) are done.
* Introduce cases folder for files run by the unit tests1 parent 84b0ac7 commit 22e31dc
24 files changed
Lines changed: 32 additions & 32 deletions
File tree
- .github/workflows
- benchmark
- test
- cases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments