test(e2e): framework E2E binary asli (pty + emulator layar) — 6 skenario hijau
CI / test (push) Successful in 10m50s
CI / test (push) Successful in 10m50s
This commit is contained in:
1 parent
0548de0db4
commit
3f3cc9e8bb
6 files changed
+493
-2
No files matched your search
@@ -19,6 +19,19 @@ make test # unit test
|
||||
|
||||
Nama binary final: **`tia-love`** (nama produk tetap **tia**).
|
||||
|
||||
## Test
|
||||
|
||||
```bash
|
||||
go test ./... # unit test + e2e
|
||||
go test ./e2e/ -v # E2E saja (verbose)
|
||||
```
|
||||
|
||||
E2E (`e2e/`) membangun binary asli, menjalankannya di dalam pty 120×40, dan
|
||||
memverifikasi **isi layar** lewat emulator terminal mini (`e2e/screen_test.go`):
|
||||
boot TUI → keluar bersih (exit 0), toast (`t`), reduced-motion (`a`),
|
||||
klik mouse + navigasi (`j`/`k`), dan exit code error (2) untuk perintah asing.
|
||||
Asersi berbasis layar (bukan byte mentah) agar tahan terhadap diff-renderer.
|
||||
|
||||
## Instalasi
|
||||
|
||||
Setelah rilis pertama tersedia:
|
||||
|
||||
Reference in new issue
Block a user