Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support older ctest without --output-junit support #35

Open
thewierdnut opened this issue Jan 3, 2024 · 4 comments
Open

Support older ctest without --output-junit support #35

thewierdnut opened this issue Jan 3, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@thewierdnut
Copy link

Would it be possible to support older ctest installs that don't have --output-junit support? A simple Yes/No based on the ctest return status would be sufficient for my purposes, but bonus points if you can parse the --log-output format.

I'm currently stuck using ctest version 3.16.3

@brobeson
Copy link
Owner

brobeson commented Jan 4, 2024

@thewierdnut, I've actually been thinking about archiving CTest Lab. The cmake-tools extension added CTest integration awhile back. I just assumed most users would go with that instead of installing another extension. That said, if there is still demand for CTest Lab, I'm open to maintaining and improving it.

bonus points if you can parse the --log-output format.

Did you mean the --output-log format? I don't see --log-output in the CTest 3.16.3 documentation.

@thewierdnut
Copy link
Author

@thewierdnut, I've actually been thinking about archiving CTest Lab. The cmake-tools extension added CTest integration awhile back. I just assumed most users would go with that instead of installing another extension. That said, if there is still demand for CTest Lab, I'm open to maintaining and improving it.

I haven't been able to get cmake-tools working on my projects, mostly because the compiler structure I am forced to use doesn't match what cmake-tools expects to find. Its easy enough to directly run cmake with the relevant build arguments and environment I need. I mostly was just curious if there was a tool that I could point to a build directory to integrate a unit testing gui into vscode.

If you want to archive this project, don't let me stop you. I can modify it to suit my own needs, I was just hoping somebody who knew javascript better than I could handle it.

Did you mean the --output-log format? I don't see --log-output in the CTest 3.16.3 documentation.

Yes, sorry.

@brobeson
Copy link
Owner

brobeson commented Jan 4, 2024

I'll look into adding it. My thought is to release just the pass/fail/skipped status, then try to parse the actual test output. The test status output from CTest is pretty uniform, so that should be easy. The actual test output might be trickier since different test libraries have different output format.

@brobeson brobeson self-assigned this Jan 4, 2024
@brobeson brobeson added the enhancement New feature or request label Jan 4, 2024
@brobeson brobeson added this to the Version 0.5 milestone Jan 4, 2024
@thewierdnut
Copy link
Author

The actual test output might be trickier since different test libraries have different output format.

I would just stick to the ctest output, and not bother with the test binary output. The junit xml output doesn't give you anything better than the binary success/fail status either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Status: 🆕 New
Development

No branches or pull requests

2 participants