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

CI build doesn't compile examples in documentation #232

Open
hannobraun opened this issue Jan 14, 2025 · 2 comments
Open

CI build doesn't compile examples in documentation #232

hannobraun opened this issue Jan 14, 2025 · 2 comments

Comments

@hannobraun
Copy link
Owner

One example is currently broken on main. If I run cargo test locally, I get this:

test src/lib.rs - (line 54) ... FAILED

(See #231, which fixes this.)

And yet, the CI build is green right now: https://github.com/hannobraun/inotify-rs/actions/runs/12631159244/job/35192359287

Inspecting the output, it seems that doc tests aren't run. And indeed, if I run the same command locally (cargo test --all-features --all-targets), I'm getting the same result: all green.

I don't know why that is. It would be great, if somebody could look into this, and figure out a better command for the CI build to run.

@WhyNotHugo
Copy link
Contributor

> cargo test -h | grep all-targets
      --all-targets       Test all targets (does not include doctests)

@hannobraun
Copy link
Owner Author

Thank you, @WhyNotHugo , makes sense, then. I guess we're missing --doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants