给我整下Unity的单元测试 episode artwork

EPISODE · Jun 1, 2025 · 9 MIN

给我整下Unity的单元测试

from 给我整 growgen · host 宫不上

这篇博客记录了 2025 年 6 月 1 日作者对过去一周的一些技术研究和体验的分享。具体包括:✅ dify 与 flowise 的使用比较dify 界面(UI)更好看(毕竟是中国人做的),功能与 flowise 差不多,体验感觉“半斤八两”。计划下一周试试最近火起来的 N8N。本周使用 dify 主要因为参加 Hackson,发现用的人不少。✅ AI 编程代理(像 langchain)本周看了下 long chain(AI Agent 编程框架),因为必须跟上潮流,否则担心会被淘汰。✅ Unity 单元测试的实践和困难用过的单元测试主要是 JavaScript、TypeScript、Python,C# 是第一次深入做。Rust 的单元测试体验不错,因为内置支持。JavaScript(Vitest/Jest)则比较麻烦。Unity 的 C# 单元测试里需要手动管理 assembly definition 文件,复杂度和 C++ link 类似,导致花了很多时间。由于项目已成型,再去补单元测试非常繁琐,决定只做单个功能的小单元测试(TDD)。Unity 测试环境下需要 mock 很多模块,增加了复杂度。最终用 AI(Cursor)来帮助重构代码成 MVC,然后只对 ViewModel 层做测试,减少依赖。发现 AI 生成的单元测试代码有时候会修改原代码,需要注意回顾。✅ Unreal Engine(UE)初步了解UE 用 C++ 写,blueprint 是可视化脚本语言(性能和循环引用问题比 C++ 差)。blueprint 类似 JavaScript,也是最终编译到 C++,适合更直观开发。接下来想找些实际项目练手,熟悉 C++ 和 blueprint 混合开发。✅ 接下来的计划继续研究 dify、flowise、N8N。还想看 bevy。再找机会用 UE 做个小项目。

Episode metadata supplied by the publisher feed · Published Jun 1, 2025

Embed this episode

Ready to play

给我整下Unity的单元测试

0:00 9:16

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of 给我整 growgen?

This episode is 9 minutes long.

When was this 给我整 growgen episode published?

This episode was published on June 1, 2025.

Can I download this 给我整 growgen episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!