Closed CrepeGoat closed 2 months ago
We do not have any inline tests in this repo so cargo test is expected to not work.
if there are no inline tests, shouldn't cargo test
collect zero tests and pass? not sure I understand the project setup here.
I'm asking because I'm trying to write a nix derivation to build and install filament (in my case, specifically on macOS, but this would be applicable to linux builds as well). it just so happens that the de-facto rust project builder on nix, rustBuildPackage
, runs cargo test
after building to check that the build was successful, and in the case of this repo, that fails. I can likely turn off that check somehow, but the build should ideally have some validity check, and it's not clear to me what that would be. (as I commented in #301, the docs instructions for checking for a correct compiler build seem to be outdated.)
please advise, thanks
Okay, got it! The intension is definitely that we don't have any inline tests so if we are triggering them, that is a bug and should be fixed.
Do you want to take a shot at fixing this? Also, thanks for building a nix configuration. We'd love to add it directly to the repo and provide it as a possible build option for new users.
I think my employment contract would give my company ownership of anything I directly contribute, so unfortunately I think it's not really feasible for me to contribute, neither for fixing the errors nor posting a nix build 😢 otherwise I'd absolutely be interested. sorry
The issue is that rust had built in documentation tests for code blocks in doc comments. This is easily fixed by setting the doc comment language to fil
instead of nothing, which would default to rust.
I just pulled main and reran cargo test
; it looks like #448 fixed 2 out of the 3 failures.
-> can this be reopened until the 3rd is fixed?
system
setup
as described in the docs:
errors