-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat: support default test timeout in bunfig.toml #13988
base: main
Are you sure you want to change the base?
feat: support default test timeout in bunfig.toml #13988
Conversation
d5a2fa9
to
984ea2a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this. Would you be able to add a test? I suggest putting it in test/cli/test
and use tempDirWithFiles
from "harness"
to create a temp folder programmatically with the bunfig.toml. Probably set the default test timeout to something like 1 or 5 and then verify the process prints a timed out message
I think this block of code could be moved to run after the bunfig.toml is read: Lines 456 to 528 in ab07cf4
|
10-4, thanks! Will likely be a few days before I can look at this again in detail, but it's on my TODO list. |
984ea2a
to
a1bbae5
Compare
Ok, I've got the tests for this pushed. Will be looking at the implementation next chance I get. |
c4148ff
to
acb7a62
Compare
Ok @Jarred-Sumner, ready for another look when you get time! |
00128bf
to
2b4c342
Compare
2b4c342
to
78bfbec
Compare
This is good to go from my perspective, but I'll pop in every now and again to rebase from main, and would be happy to address any further concerns or change requests that may arise. |
465c025
to
c8eec81
Compare
c8eec81
to
b48b712
Compare
Hello there! I'm new to the project and Zig and thought I would try to help implement a small feature for which I voted.
What does this PR do?
This PR addresses #7789 by allowing default test timeout to be configured in
bunfig.toml
.Thanks to @Jarred-Sumner for guidance 🙌
How did you verify your code works?
I wrote automated tests here.
A Zig file changed.
JSValue used outside outside of the stack is either wrapped in a JSC.Strong or is JSValueProtect'edbun-debug test test-file-name.test
)