|
1 | 1 | # TensorKit.jl test suite |
2 | 2 |
|
3 | | -Tests use [ParallelTestRunner.jl](https://github.com/vchuravy/ParallelTestRunner.jl) for parallel |
4 | | -execution. Each test file runs in its own worker process. Shared helpers are loaded automatically |
5 | | -via `init_code` — test files do not need to include `setup.jl` themselves. |
| 3 | +Tests use [ParallelTestRunner.jl](https://github.com/vchuravy/ParallelTestRunner.jl) for parallel execution. |
| 4 | +Each test file runs in its own worker process. |
| 5 | +Shared helpers are loaded automatically via `init_code` — test files do not need to include `setup.jl` themselves. |
6 | 6 |
|
7 | 7 | ## Running tests |
8 | 8 |
|
@@ -37,17 +37,25 @@ julia --project=test test/runtests.jl --jobs=4 |
37 | 37 | |-------|----------| |
38 | 38 | | `symmetries` | Spaces and fusion trees | |
39 | 39 | | `tensors` | Core tensor operations, factorizations, planar tensors, diagonal tensors | |
40 | | -| `other` | Aqua code-quality checks, bug-fix regressions | |
| 40 | +| `other` | Aqua code-quality checks, JET static analysis, bug-fix regressions | |
41 | 41 | | `chainrules` | ChainRulesCore AD tests | |
42 | 42 | | `mooncake` | Mooncake AD tests | |
43 | 43 | | `cuda` | CUDA GPU tests (only run when a functional GPU is present) | |
44 | 44 |
|
| 45 | +JET only functions on the Julia versions it supports, which it reports through `JET.JET_AVAILABLE`. |
| 46 | +`runtests.jl` drops the JET-dependent files from the testsuite when that is `false`: |
| 47 | +`other/jet` (whole-package analysis, which additionally requires the JET 0.12 generation) |
| 48 | +and `mooncake/tangent` (reaches JET through Mooncake's extension). |
| 49 | + |
| 50 | +Mooncake caps which JET versions it accepts, so the `Mooncake = "0.5.45"` floor in |
| 51 | +`test/Project.toml` is what lets JET 0.12 be resolved at all — with an older Mooncake the |
| 52 | +resolver settles on JET 0.11 and `other/jet` is silently dropped. |
| 53 | + |
45 | 54 | ## Fast mode (`--fast`) |
46 | 55 |
|
47 | 56 | Skips `chainrules` and `mooncake` groups entirely, and reduces coverage in the remaining tests: |
48 | 57 |
|
49 | | -- **Sector types**: tests only `Z2Irrep`, `SU2Irrep`, `FermionParity ⊠ U1Irrep ⊠ SU2Irrep`, |
50 | | - and `FibonacciAnyon` (instead of the full `sectorlist`) |
| 58 | +- **Sector types**: tests only `Z2Irrep`, `SU2Irrep`, `FermionParity ⊠ U1Irrep ⊠ SU2Irrep`, and `FibonacciAnyon` (instead of the full `sectorlist`) |
51 | 59 | - **Space lists**: tests only `(Vtr, Vℤ₂, VSU₂)` (trivial, abelian, non-abelian) |
52 | 60 | - **Scalar types**: tests only `Float64` and `ComplexF64` (instead of all integer/float variants) |
53 | 61 |
|
|
0 commit comments