You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a "No such file or directory (os error 2)" after running leo new lib --testing and then running leo test.
Steps to Reproduce
AleoHQ/ $ leo new --lib testing
Initializing Successfully initialized package "testing"
AleoHQ/ $ cd testing/
testing/ $ leo test
Test reading: No such file or directory (os error 2)
Error: InputsDirectoryError(Reading(Os { code: 2, kind: NotFound, message: "No such file or directory" }))
Expected Behavior
I would expect to see the default output:
Test Running 0 tests
Done Tests passed in 3 milliseconds. 0 passed; 0 failed;
Your Environment
1.0.3
1.46.0 stable
Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
Starting a conversation on this one. Are we keeping --lib option in a CLI and how do we deal with tests with inputs?
My proposed solution is:
Make inputs optional in testing libraries (i.e. projects that do not contain main.leo file). In the end circuits can be unit-tested and it is okay (?) to not provide inputs for libraries. Adding a warning message of kind No inputs found may also be helpful in this scenario.
I would also improve @collinc97 proposal in [Feature] Add flags to leo test #277 and allow people write tests in any file. So leo test could be called for specific file(s) or even all files in the project (if there're tests of course): leo test --all and leo test -f lib.leo -f tests.leo. Inputs for these tests are still optionally provided.
Features:
- introduces new Command and Route traits for Leo commands and Aleo PM API
- most of the CLI code replace with higher-level abstraction - StructOpt
- anyhow used for error handling, no more custom error classes
- improves API - now every status code has its business logic
- adds global flags (e.g. --quiet to suppress output)
- error messages improved for convenience and better user experience
Closes:
- #604
- #599
- #584
- #277
- #376
🐛 Bug Report
I'm getting a "No such file or directory (os error 2)" after running
leo new lib --testing
and then runningleo test
.Steps to Reproduce
Expected Behavior
I would expect to see the default output:
Your Environment
The text was updated successfully, but these errors were encountered: