Files
hakorune/docs/tests/E2E_TESTS.md
Moe Charm 70af0fe566 feat: Add HTTP status tests and dynamic plugin documentation
- Add e2e_vm_http_status_404/500 tests to verify HTTP status handling
- ResultBox properly returns Ok(Response) for HTTP errors, Err for connection failures
- Create dynamic-plugin-flow.md documenting MIR→VM→Registry→Plugin flow
- Add vm-stats test files for HTTP 404/500 status codes
- Update net-plugin.md with HTTP error handling clarification
- Create E2E_TESTS.md documenting all E2E test behaviors
- Add mir-26-instruction-diet.md for MIR optimization plans
- Add vm-stats-cookbook.md for VM statistics usage guide
- Update MIR verifier to properly track self-assignment patterns

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-23 16:33:32 +09:00

27 lines
988 B
Markdown

# E2E Tests Overview
Purpose
- Track end-to-end coverage with plugins and core features, both interpreter and VM.
HTTP (plugins)
- GET basic (VM): `e2e_vm_http_get_basic` → body `OK`
- POST + headers (VM): `e2e_vm_http_post_and_headers``201:V:R`
- Status 404 (VM): `e2e_vm_http_status_404``404:NF`
- Status 500 (VM): `e2e_vm_http_status_500``500:ERR`
- Client error (unreachable) (VM): `e2e_vm_http_client_error_result``Result.Err(ErrorBox)`
FileBox (plugins)
- Close returns void (Interp/VM)
- Open/Write/Read (VM): `e2e_vm_plugin_filebox_open_rw``HELLO`
- copyFrom(handle) (VM): `e2e_vm_plugin_filebox_copy_from_handle``HELLO`
MIR/VM Core
- Ref ops MIR build: `mir_phase6_lowering_ref_ops`
- Ref ops VM exec: `mir_phase6_vm_ref_ops`
- Async ops MIR/VM: `mir_phase7_async_ops`
Conventions
- Use distinct ports per test (8080+). Enable logs only on failure to keep CI output tidy.
- Plugins logs: `NYASH_NET_LOG=1 NYASH_NET_LOG_FILE=net_plugin.log`.