-
Notifications
You must be signed in to change notification settings - Fork 0
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: add cargo test reporting #56
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -41,7 +41,7 @@ | |||||
]; | ||||||
perSystem = { config, self', inputs', system, pkgs, lib, ... }: | ||||||
let | ||||||
rustToolchain = inputs'.fenix.packages.stable.toolchain; | ||||||
rustToolchain = inputs'.fenix.packages.latest.toolchain; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would like to avoid using nigthly toolchain. |
||||||
craneLib = inputs.crane.lib.${system}.overrideToolchain rustToolchain; | ||||||
|
||||||
kairosNodeAttrs = { | ||||||
|
@@ -83,6 +83,11 @@ | |||||
|
||||||
kairos = craneLib.buildPackage (kairosNodeAttrs // { | ||||||
cargoArtifacts = self'.packages.kairos-deps; | ||||||
cargoTestExtraArgs = "-- -Z unstable-options --format json --report-time | tee test-output.json"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Edit: Okay, I see |
||||||
postCheck = '' | ||||||
mkdir -p $out | ||||||
cp test-output.json $out | ||||||
''; | ||||||
}); | ||||||
|
||||||
default = self'.packages.kairos; | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
cargo2junit
forces us to use nigthly toolchain 😞.What about using
cargo nextest
instead of default cargo test runner? Nextest has JUnit output and it was designed for usage in CI.