-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add filename, line and column number to MojoTestItem #9
Comments
In mojo v24.3 there are some very useful sounding enhancements
|
Great news, thanks @guidorice! |
@franckrasolo If you give it a try, just a tip you will need to manually copy over the latest MojoTest struct from https://github.com/guidorice/mojo-pytest/blob/58512e8ed1a76fa67f49d228d1758dec8be525f2/example/tests/util.mojo |
@guidorice Yes, I did exactly that as I'm currently using everything that's in the |
When a python test is collected by pytest, it reports a line number and context like this:
In IDEs like VSCode, we can quickly navigate to the failed test function/class by Cmd-click on the file:line.
In mojo-pytest this would be a useful enhancement at least to have at least the line number. It should be possible to resolve at the line number of failed MojoTestItems by scanning for the test name, and/or the assert failure message, in the mojo source file.
The text was updated successfully, but these errors were encountered: