Commit 6d947be
committed
Enable parallel execution of core unit tests and fix isolation issues
- Updated `maven/core-unittests/pom.xml` to set `forkCount` to `1C` and `reuseForks` to `true` for significant performance gains.
- Refactored `UITestBase` to use `@BeforeAll` for `Display` initialization (with `@TestInstance(PER_CLASS)`), drastically reducing setup time per test.
- Implemented a comprehensive `reset()` method in `TestCodenameOneImplementation` (clearing files, sockets, DBs, contacts, and static flags like `deviceDensity`) and invoked it in `@AfterEach`.
- Added logic to `UITestBase.tearDownDisplay` to reset `Toolbar` global state and clear `Display`'s pending serial call queues via reflection, preventing cross-test pollution.
- Fixed `SeriesTransitionTest` to handle non-deterministic timing (using wait loops instead of fixed counts) and prevent NPEs during Form initialization.1 parent 9fefbab commit 6d947be
File tree
3 files changed
+37
-2
lines changed- maven/core-unittests/src/test/java/com/codename1
- charts/transitions
- junit
- testing
3 files changed
+37
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
85 | 106 | | |
86 | 107 | | |
87 | 108 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
918 | 928 | | |
919 | 929 | | |
920 | 930 | | |
| |||
0 commit comments