Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Test: add unit tests for WriteIDEConfigs #618

Description

@cicalese

Summary

Add unit tests for the WriteIDEConfigs function in internal/devmode/devmode.go.

What to test

This function reads host/port settings from .env and substitutes them into IDE configuration templates (VSCode launch.json, PHPStorm config).

Test cases:

  • Standard .env with default ports — should generate configs with correct values
  • Custom ports in .env — should substitute correctly
  • Missing .env — should use default values
  • Output files written to correct locations

How to test

Use t.TempDir() to create a temporary installation directory with a .env file. No Docker or orchestrator needed.

Context

Part of the test coverage initiative (#241).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions