Open invent360 opened 11 months ago
@invent360 I guess Unit::run()
by default tries to parse CLI args, and execute --format=json --exact -Z unstable-options --show-output
is not something expected by it. You should specify cli::Args
manually in this case, because you're running tests harness = false
. See this chapter of the Book, .with_cli()
docs and .with_default_cli()
docs.
Also, similar question was discussed here: https://github.com/cucumber-rs/cucumber/discussions/294
Sorry if this is an IDE issue but any clue of running test on debug mode ? Steps 1) click on "Debug Test execute"
start_app() basically establishes a db connection and starts a server on a different thread
Result: DB connection is successfully established and server starts up but the following error is thrown
Note: Test runs well without errors when executed on command lines as follows
cargo test -p nubia --test unit_test