Optionally build and run application and examples during testing #76
Labels
No labels
bug
design
duplicate
enhancement
maintenance
prospective
question
regression
stub
todo
ui
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: StudioInfinity/dyna3#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
The continuous integration workflow set up in pull request #75 verifies three things:
It's useful to do these checks as separate jobs, because it makes the continuous integration report more granular. During local development, however, it would be nice to have a convenient way to run all three checks together.
Implementation ideas
If we give our examples the
#[test]
attribute, but ignore them unless a certain feature flag is set, we should be able to run the examples alongside the automated tests by callingI am presuming this scheme has no WASM-bundle footprint when compiled for deployment. If so, sounds perfectly reasonable to me.
That's right. If I've set things up right, tests and examples are conditionally compiled, so they won't affect the outcome of a release build.
During review of #75, we decided to bundle all three checks together under
cargo test
, both in continuous integration and during local development. We can get granular information about failures by looking at the test report. On Forgejo, the test report is a bit buried, but that shouldn't be a big deal, because we'll establish a routine of running CI locally before pushing to the server. During a local CI run, the test report is easy to see.