We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a function I want to test which may raise Not_found
Not_found
I have a test like:
let test_sample = test @@ fun () -> let* points = Sample.(list int) in let result = MyModule.my_func points in equal Comparator.int result [1;2;3]
When I run this as part of a test suite I just get this:
$ dune test File "tests/dune", line 2, characters 8-14: 2 | (names mytests) ^^^^^^ Fatal error: exception Not_found
I was expecting the test framework to catch and report unhandled exceptions - in a big test suite it's not clear which test has failed, or where.
I can add my own try/with in the test case but I was just wondering if this is expected behaviour or not?
try/with
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a function I want to test which may raise
Not_found
I have a test like:
When I run this as part of a test suite I just get this:
I was expecting the test framework to catch and report unhandled exceptions - in a big test suite it's not clear which test has failed, or where.
I can add my own
try/with
in the test case but I was just wondering if this is expected behaviour or not?The text was updated successfully, but these errors were encountered: