Uh oh!
There was an error while loading. Please reload this page.
Add exit code tests - #275
Conversation
joshbax189
commented
Nov 5, 2024
Right now, this only has checks for the analyze command, but I wanted to get feedback on the usage of the helper functions in test. Sorry if it triggers a lot of CI failures! |
jcs090218
commented
Nov 5, 2024
I like the idea! These are my thoughts on the test implementation. :D
WDYT? :) |
joshbax189
commented
Nov 5, 2024
I think I chose the worst possible example command 💥 I want to test more than just Eask file errors and warnings, which I might have implied by this choice... A better example might be I'll add a few more examples in a new subfolder of |
jcs090218
commented
Nov 6, 2024
No worries! I'm more keen to test this feature explicitly, so it's easier to track and test in one place. 🤔 |
561a100 to
570077dComparejoshbax189
commented
Mar 17, 2025
Hey @jcs090218 sorry this PR fell off the TODO list over the xmas period. Turns out Eask has a lot of features to test! This PR has tests that cover a few different issues, so I'm gonna separate them out into smaller PRs for your consideration. |
570077d to
e87618dComparejcs090218
commented
Mar 17, 2025
Wow, I didn’t realize the PR had so many changes—87 files and 1,725 lines added! No problem at all! I truly appreciate and am grateful that people are willing to put in the time and effort to improve this project! 😄
That sounds great! I'm not sure if I can handle reviewing such a massive PR! 👍 |
e87618d to
1eddbb3Comparejoshbax189
commented
Mar 31, 2025
Ok I'm still trying to figure out the best way to break down this PR. But now we have more options after adding Jest! I can:
I think the choice partly depends on whether you want the new tests to go into Since Jest is better at grouping tests within files and at reporting where the failure came from vs a shell script test, I'd prefer to put the new tests in individual test files. I think the tests for |
jcs090218
commented
Mar 31, 2025
I agreed. "Test files for each command" is the way to go. It's more explicit. :) |
Before changing the behavior of errors as discussed in #273 , I wanted to add more tests that check the current behavior.
This PR adds tests which check, for each command:
--strictis setwhen
--allow-erroris set, then exit with errorI'll add some script helpers that check error statuses and note any discrepancies I see.
I'll comment out and mark any currently failing expectations with
#FIXMEso that the CI run is clean.