Files
gitea-ci-library/docs/tickets/0012-integration-testing.md
T
moilanik 9a59cbc185
CI — gitea-ci-library / feature (push) Failing after 1s
CI — gitea-ci-library / master (push) Has been skipped
tiketit ja featuret vaihe 1
2026-06-08 09:34:47 +03:00

46 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Ticket 0012: Integraatiotestaus koko ketjulle
**Vaihe:** 12/12
**Status:** pending
**Feature branch:** `feature/0012-integration-testing`
**TDD required:** Yes
**Feature file required:** Yes (kaikki tikettien 00010011 feature filet, `@real`-skenaariot)
**Required context:**
- `docs/test-plan/tdd-guide.md`
- Kaikki `tests/features/00010011-*.feature` — tikettien 00010011 feature filet
- Skills: `tdd`, `implementation`, `clean-code`
---
## TDD — E2E `@real` -verifiointi
Tiketti 0012 ajaa tikettien 00010011 feature filejen `@real`-skenaariot oikeaa testiympäristöä vasten. Se ei luo uusia skenaarioita — se verifioi jo määritellyt skenaariot todellisessa ympäristössä.
Feature filet: `tests/features/00010011-*.feature` (luotu tiketeissä 00010011).
### Toiminto
1. Vaihda mock-URL:t oikean testiympäristön URL:eihin
2. Aja kaikki `@real`-skenaariot:
```bash
cucumber tests/features/ --tags @real
```
Skenaariot jotka eivät ole `@real`-tägättyjä skipataan automaattisesti.
### DoD
- [ ] Cucumber: kaikki `@real`-skenaariot GREEN oikeaa ympäristöä vasten
- [ ] Bats: kaikki aiemmat testit edelleen GREEN
- [ ] Toteutus: mock→real -konfiguraatio olemassa
- [ ] Refactor: ei duplikaatiota, virheenkäsittely kunnossa
## Viitteet
- `docs/tickets/00010011` — Tiketit joiden featuret ajetaan
- `docs/requirements.md` — UC1UC7
- `docs/architecture.md` — Järjestelmäkaavio + tietovuot
- `docs/test-plan/tdd-guide.md`