Skip to content

Theme: тесты (unit/widget) для theme pipeline #58

Description

@ZhuchkaTriplesix

Summary

Тестовая инфраструктура для системы тем: unit + widget tests, golden/fixtures.

Unit tests

Модуль Тесты
JSONC preprocessor (#39) comments, trailing comma, fixtures Dracula
Color parser (#53) HEX variants
Deep merge (#45) 3-layer merge
QueryaTheme.fromDefaults (#38) dark == legacy colors
VS Code map (#44) key → token

Widget tests

  • QueryaApp pump: switch ThemeController preset → expect ColorScheme.primary change
  • QueryEditorTab with mock QueryaCodeEditor — font size from settings

Fixtures

test/fixtures/themes/
  dracula.json
  one-dark.json
  invalid-trailing-comma.jsonc

Acceptance criteria

  • flutter test green in CI
  • Coverage note в PR template (optional threshold не обязателен)

Зависимости

Оценка

~2 дня

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestthemeTheming, colors, VS Code themes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions