This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3107: Unit Testing under Theia

Part Number: MSPM0G3107
Other Parts Discussed in Thread: LP-MSPM0G3507

Tool/software:

Hi there,

I recently started experimenting with the Launchpad LP-MSPM0G3507 under macOS/CCS Theia. In general, I’m a fan of your strategy to transition from Eclipse to Theia. I’ve already gained some experience with VS Code and am very enthusiastic about the plugin concept. However, I’m encountering some issues with the current version 1.5.1.3 regarding unit testing:

  • I’m unable to install plugins like C++ TestMate. Will this feature be available soon?
  • To at least debug my unit tests (built using a Makefile) via Theia GUI, the debugger would need to be configurable for host debugging. Unfortunately, the only supported “type” in the launch.json is “ccs-debug.” A plugin could solve this, but as mentioned above, I can’t install any plugins.
  • As an alternative, I tried installing the TI plugin under VS Code, but I’m encountering an error when trying to install the “dependencies” on macOS.

As it stands, working with CCS Theia isn’t much fun for me yet. Could you help me out?

Thank you very much and best regards,

Marco

  • Hi Marco,
    We're currently still working on adding and fixing the issues you are experiencing by our next release. 
    Best Regards,
    Diego Abad

  • Hi Diego Abad,
    Thank you for your response. Could you provide an update on when plugins for Theia will work? Is December (as described here: https://downloads.ti.com/ccs/esd/CCSv20/) still a realistic timeline for your major upgrade?
    Regards Marco

  • Hi Marco,
    I talked with the software team, and they mentioned to me that they already support adding plug-ins to Theia. I tried to install C++ TestMate, and I'm able to add it to my list of plug-ins. Can you tell me how you are installing the plug-ins?
    Best Regards,
    Diego Abad

  • Hello Diego Abad,

    That sounds great. In the attached video, you can see how I am attempting to install C++Testmate. Here are a few notes on this:

    • The installation requires a restart (this also applies to other plugins).
    • After the restart, the plugin appears to be partially “installed,” but the icon is missing in the sidebar (below Trace).
    • I’ve observed the same behavior on both Windows and Linux as well.

    Thank you for your support!

    Best regards,

    Marco

  • Hi Marco,
    Sadly, I can't play the video. Could you share with me how you installed the plug-in in writing?
    Best Regards,
    Diego Abad

  • Hello Diego Abad,
    too bad :( maybe this link helps: https://www.dropbox.com/scl/fi/ofahy8trpw24ko2fbdng9/Bildschirmaufnahme-2024-12-04-um-08.47.58.mov?rlkey=0uht97aemoye91tcmk3jz5bsp&st=w6gh5fa6&dl=0 

    what i did: 

    1. navigate to the Extensions tab in the sidebar
    2. searching for TestMate
    3. hit the "install" button -> the button turns to installing and stays like that forever
    4. reopen CCS Teia -> button is now blue and shows "uninstall"
    5. the icon in the sidebar (like if installing C++Testmate on VS Code) isn't there.

    thanks again

    Marco 

  • Hi Marco,
    I see that you can install the plug-in. I installed it by downloading the .vsix file and installing it through the .vsix installation option in Theia. However, I do see the same error in the console you are seeing. Can you try running the commands the plug-in should have to confirm it works? I also installed the plug-in in VS Code but don't see an icon in the sidebar. 
    Best Regards,
    Diego Abad

  • Hello Diego Abad,

    The purpose of TestMate is precisely to manage the tests visually within the GUI. Therefore, proper integration into the sidebar is essential.

    In VS Code, the C++TestMate plugin appears under “Testing” with the “test tube” icon (see screenshot).

    The question remains the same for me: can we expect a major upgrade as advertised here in November/December 2024?

    Regards Marco

    PS: In VS Code, there is a “Restricted Mode.” If you have this mode enabled, extensions will not appear in the sidebar.

  • Hi Marco,
    Let me talk with the Software team and I'll confirm if we'll include this feature in our next release.

    Best Regards,

    Diego Abad

  • Hi Marco,
    After talking with our software team, they say that they are working on adding this feature to Theia. Sadly, it most likely be available in a future update after the December update. We should have an update on this by February.

    Best Regards,

    Diego Abad

  • Hi Marco,

    The Test Explorer is not opened by default, you can open it by selecting "View -> Open View..." menu item, type "explorer" in the command palette and select "Test Explorer". You should be able to see the TestMate C++ extension in this view.

    Can you try to use the latest version of CCS 20? There are a number of fixes, including fixes for installing extension.

    Regards,
    Patrick