PulseAugur
EN
LIVE 12:27:37
Русский(RU) Тесты для кода, который пишет ИИ: контракты вместо ассертов — создание сервера для онлайн ММО игр на PHP, ч. 20 Половину контрактов моего игрового сервера нельз

AI-generated code tested with contracts instead of assertions

This article details the implementation of a server for an online MMO game using PHP, focusing on contract-based testing for AI-generated code. The author explains how to use contracts instead of traditional assertions, especially for code where the output is dynamic and embedded within live processes, page markup, or game frames. The system involves defining tests as 'given → action → expectation' tables, executed by an agent, and includes a review process to validate findings, with defined boundaries for AI code generation. AI

IMPACT Provides a novel approach to testing AI-generated code, potentially improving reliability in software development.

RANK_REASON Article describes a specific technical implementation for testing AI-generated code, which falls under tooling rather than a core AI release or significant industry event.

Read on Mastodon — fosstodon.org →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

AI-generated code tested with contracts instead of assertions

COVERAGE [1]

  1. Mastodon — fosstodon.org TIER_1 Русский(RU) · [email protected] ·

    Code tests for AI-generated code: contracts instead of assertions - building a server for online MMO games in PHP, part 20 Half of my game server contracts are impossible

    Тесты для кода, который пишет ИИ: контракты вместо ассертов — создание сервера для онлайн ММО игр на PHP, ч. 20 Половину контрактов моего игрового сервера нельзя записать ассертом: исход живёт в ответе живого процесса, в разметке страницы и в кадре игры. Я записал их таблицами «д…