Support VSCode C++TestMate extension - #716
Open
minoru-nagasawa wants to merge 5 commits into
Open
Conversation
…oogleTest for VSCode C++ TestMate
Owner
|
PR ありがとうございます。最近全くメンテナンスできておらず、レビューにお時間いただくことになると思います。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VSCodeの拡張機能C++TestMateでIUTESTのテストを検出できるように修正しました。
C++TestMateが認識するようにGoogleTestと出力形式を一致させています。
対象拡張機能:
https://marketplace.visualstudio.com/items?itemName=matepek.vscode-catch2-test-adapter
変更内容
--helpの出力メッセージを調整
C++TestMateは以下の正規表現に一致するかどうかでGoogleTestを判定しているため、IUTEST側の--helpを修正しました。
This program contains tests written using .*--(\w+)list_tests.*List the names of all tests instead of running them--iutest_list_testsの出力形式を調整(suite名の末尾に . を追加)
C++TestMateが想定する形式に合わせるため、Test Suite名の後にピリオドを追加しました。
--iutest_list_tests + --iutest_output=xmlに対応
テスト検出に必要なため、list_tests実行時に XML出力できるよう対応しました。
実行時間表示のフォーマットを調整("ms"の前にスペースを追加)
C++TestMateの解析形式に合わせるため、XXms → XX ms となるようにしました。
結果
これにより、C++TestMate上でIUTESTのテストが一覧表示され、GUIから個別実行できるようになります。
ご確認よろしくお願いします。