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

Factor test building and test running #276

Open
brettviren opened this issue Feb 14, 2024 · 3 comments
Open

Factor test building and test running #276

brettviren opened this issue Feb 14, 2024 · 3 comments
Labels
build Related to build errors and features

Comments

@brettviren
Copy link
Member

Currently there is not a good separation between building and running of tests.

Desired end state: always build test_* and doctests. Only run when ./wcb --tests given.

@brettviren
Copy link
Member Author

The auto close of that commit didn't fire due to spelling but in any case I want to keep this open as the current build policy is not satisfying.

Here are features that are true now that should be kept:

  • From a green field a ./wcb builds everything including atomic tests but runs no tests.
  • A ./wcb --tests is needed to run the atomic tests.

Here are new features that are wanted:

  • Touching a file, eg in util/ but doing a ./wcb --target=wcdoctest-util ONLY builds the targets (eg, libWireCellUtil and the actual executable) that are needed for that --target. Right now, this will build all things that depend on the touched file.

@brettviren
Copy link
Member Author

It would be nice to have a "development" and "release" build mode. In "dev" mode, run any doctest that got rebuilt. In "rel" mode, do not build nor run any tests.

@brettviren brettviren added the build Related to build errors and features label May 15, 2024
@brettviren brettviren reopened this May 20, 2024
@brettviren
Copy link
Member Author

This issue has been extended beyond what that auto-close commit provides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to build errors and features
Projects
None yet
Development

No branches or pull requests

1 participant