Skip to content

[Feature Request]: Support testing of C++ files (VSC-1428) #1248

@robertkirk13

Description

@robertkirk13

Is your feature request related to a problem? Please describe.
Cannot use unit testing feature with C++ source files as only c test files are detected/supported when using the "unity-app" testing from the test menu in the side bar. Per the documentation on unit testing using the extension, only files following the pattern **/test/test_*.c are detected.

Describe the solution you'd like
Some way to allow c++ test files. Examples of testing c++ files can be found here
It would be nice if it automatically detects if any c++ test files are present, and if so makes test_app_main a cpp file, otherwise just does the existing functionality.

Describe alternatives you've considered
It's possible to test C++ files already but not with the simple vscode tooling that exists for c files. This would probably be a very easy feature to implement.

Additional context

Metadata

Metadata

Assignees

Labels

Feature / Enhancement RequestRequest for Feature/ EnhancementongoingOngoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions