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

Compile tests without running #1930

Open
hwchen opened this issue Feb 6, 2025 · 1 comment
Open

Compile tests without running #1930

hwchen opened this issue Feb 6, 2025 · 1 comment
Milestone

Comments

@hwchen
Copy link
Contributor

hwchen commented Feb 6, 2025

Currently, using compile-test, the testrun executable will be compiled and then automatically run. However, there may be some cases when it's not desirable to immediately run, such as compiling test executable for use with debugger.

This can be implemented with a flag like --no-run. --build-only has also been suggested. As a point of posible confusion, compile-only subcommand already exists, which compiles but does not link.

Not sure further discussion is needed, but as an initial thought, checking for this flag can just be placed after the check for compile-test, compile-bench, etc, and just switch off the run. Let me know if there's other considerations.

@lerno
Copy link
Collaborator

lerno commented Feb 6, 2025

Note that --testing and --benchmark already includes the test but without the actual test/bench runner created as the main.

@lerno lerno added this to the 0.6.8 milestone Feb 9, 2025
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

No branches or pull requests

2 participants