Commit 772cd79
committed
Implement testing with existing tests
The code that's being removed here made no sense. It is a `check`
rule, and it did the following things:
1. For every `.el` file it was searching it's `tests.el` counterpart.
Which doesn't exist.
2. It was checking the correctness of `declare-function`s. Which would
be fine, wasn't it for the fact the project has zero
`declare-function`s.
3. It was checking that `ert` exists, which it does on all supported
Emacs versions.
4. It was removing .elc files before running the tests. Why? 🤷♂️
Replace everything with a single `test` rule which simply loads the
test files and runs the tests.
Besides being actually useful, this also improves running time as:
Initial state | Before | After |
Non-compiled | 2.177 | 0.340 |
Compiled | 2.182 | 1.614 |1 parent eae0f4a commit 772cd79
2 files changed
+10
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
63 | 51 | | |
64 | 52 | | |
65 | 53 | | |
| |||
0 commit comments