Skip to content

PlatformIOネイティブテスト環境とGitHub Actions CIを追加 - #3

Merged
ainyan03 merged 1 commit into
mainfrom
claude/pio-native-test
Feb 8, 2026
Merged

ainyan03 merged 1 commit into
mainfrom
claude/pio-native-test

Conversation

@ainyan03

@ainyan03 ainyan03 commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • platformio.ini を M5UnitUnified 方式に再構成し、src_dir をデフォルト (src/) に変更
  • pio test -e test_native でdoctestベースのネイティブテストを実行可能に
  • GitHub Actions CI で main への push / PR 時に自動テストを実行

変更内容

  • platformio.ini: src_dir = examples を廃止し、build_src_filter で examples を参照する構成に移行。test_native 環境を追加(test_framework = doctest, test_build_src = true
  • test/test_main.cpp: PlatformIO の DoctestTestCaseParser がテストケースを認識できるよう PioListenerREGISTER_LISTENER)を追加。#ifdef PIO_UNIT_TESTING で囲んでいるため Makefile ビルドには影響なし
  • .github/workflows/test.yml: GitHub Actions CI ワークフローを追加
  • CLAUDE.md: テスト手順を更新

Test plan

  • pio test -e test_native で 179 test cases: 179 succeeded を確認
  • pio run -e bench_native でベンチマークビルド成功を確認
  • cd test && make test で従来の Makefile テストが影響なく動作することを確認
  • GitHub Actions CI でテストが通ることを確認

platformio.iniをM5UnitUnified方式に再構成し、src_dirをデフォルト(src/)に
変更。build_src_filterでexamplesを参照する構成に移行。

- test_native環境を追加(test_framework = doctest, test_build_src = true)
- PlatformIOのDoctestTestCaseParserがテストケースを認識できるよう
  PioListener(REGISTER_LISTENER)をtest_main.cppに追加
- GitHub Actions CI(.github/workflows/test.yml)を追加
- CLAUDE.mdのテスト手順を更新
@ainyan03
ainyan03 merged commit d749ed6 into main Feb 8, 2026
6 checks passed
@ainyan03
ainyan03 deleted the claude/pio-native-test branch February 8, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant