Move testing to nextest#75
Conversation
4e9006f to
c60bc81
Compare
fix simplexup version check commands
…installation * edit simplexup to install local binary version * add one more verbosity level for additional cargo verbosity * fix todo for const variable
* rename --nocapture to --no-capture
Arvolear
left a comment
There was a problem hiding this comment.
Will ask Oleh to take a look and if he is ok, will approve and merge this.
add no-capture to -v and -vv options
* add downloading and packing of cargo-nextest into attested zip * adapt simplexup
* edit quiet flag description
| /// Show grouped output after the test completion | ||
| /// Show detailed output about running tests | ||
| #[arg(long = "show-output")] | ||
| pub show_output: bool, |
There was a problem hiding this comment.
Do we need this if we have -v now?
There was a problem hiding this comment.
Yep, I moved the "--verbose" flag from nextest there
It just gives very verbose info about commands that are executed via tests
It isn't connected to "no-capture", but just gives additional info
There was a problem hiding this comment.
smplx/crates/cli/src/commands/test.rs
Line 108 in 1945d11
|
|
||
| if flags.no_fail_fast { | ||
| cargo_test_args.push("--no-fail-fast".into()); | ||
| // `--test-threads` flag is ignored by nextest when `--no-capture` is enabled |
There was a problem hiding this comment.
And what does it do? Does it default to 1?
There was a problem hiding this comment.
Yes, because enabling threads along with no-capture would turn the output into a mess of logs.
Nextest throws a warning and disables it by default, so I added this if statement to suppress the warning.
| if flags.no_fail_fast { | ||
| cargo_test_args.push("--no-fail-fast".into()); | ||
| // `--test-threads` flag is ignored by nextest when `--no-capture` is enabled | ||
| if flags.verbose == 0 { |
There was a problem hiding this comment.
Why are you putting this if here, where there is a separate function designed exactly to handle the flags?
| /// Panics if setting the Ctrl-C handler fails, or if required RPC authentication credentials cannot be unwrapped. | ||
| pub fn run(config: &RegtestConfig) -> Result<(), CommandError> { | ||
| let (mut client, signer) = RegtestRunner::from_config(config)?; | ||
| let (client, signer) = RegtestRunner::from_config(config)?; |
There was a problem hiding this comment.
| let (client, signer) = RegtestRunner::from_config(config)?; | |
| // The client will be killed automatically via the Drop trait implementation | |
| let (client, signer) = RegtestRunner::from_config(config)?; |
| mnemonic = "exist carry drive collect lend cereal occur much tiger just involve mean" | ||
| bitcoins = 10_000_000 | ||
| verbosity = 0 # 0 - none, 1 - debug, 2 - trace | ||
| verbosity = 0 # 0 - none, 1 - debug, 2 - trace, 3 - trace + additional cargo verbose output |
There was a problem hiding this comment.
Please check that everything else is up to date.
| verbosity = 0 # 0 - none, 1 - debug, 2 - trace, 3 - trace + additional cargo verbose output | |
| verbosity = 0 # 0 - none, 1 - debug, 2 - trace |
There was a problem hiding this comment.
Yeah, I searched for it, but I couldn't find it
| main() { | ||
| need_cmd git | ||
| need_cmd curl | ||
| need_cmd cargo |
There was a problem hiding this comment.
I'll move it to the install_simplex_from_commit function. It's required there.
simplexupto install nextest by defaultsimplexupcargo-binstalldependency forcargo-nextestbinary installation