Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FI-2041: Custom suites with no ids now throw standard error #387

Merged
merged 7 commits into from
Aug 31, 2023

Conversation

alisawallace
Copy link
Contributor

Summary

Original bug: a critical error would result when initializing Inferno with custom test suites that either:
a) had a blank id field (e.g., id = '')
b) had no id field

The console output did not provide meaningful information to the source of the error.
JIRA ticket link
These conditions are now checked for and, if present, will throw a standard error with a specific message during startup.

To reproduce: in inferno-core > dev_suites > demo_suite.rb, edit line 7 with the id field to be an empty string or comment out the line entirely. Then run inferno per the README instructions.

Testing Guidance

None

Original bug: a critical error would result when running custom test suites with either
a) a blank id field (e.g., id = '')
b) no id field

and the console output did not provide meaningful information to the source of the error.

These conditions are now checked for and will throw a standard error with a specific message upon startup
@alisawallace alisawallace self-assigned this Aug 28, 2023
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 66.66% and project coverage change: -0.01% ⚠️

Comparison is base (516a1ab) 76.95% compared to head (2c8fc7b) 76.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #387      +/-   ##
==========================================
- Coverage   76.95%   76.95%   -0.01%     
==========================================
  Files         213      213              
  Lines       10594    10597       +3     
  Branches      976      978       +2     
==========================================
+ Hits         8153     8155       +2     
- Misses       1872     1873       +1     
  Partials      569      569              
Flag Coverage Δ
backend 94.36% <66.66%> (-0.03%) ⬇️
frontend 69.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
lib/inferno/config/boot/suites.rb 84.21% <66.66%> (-3.29%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

alisawallace and others added 3 commits August 30, 2023 09:20
@Jammjammjamm Jammjammjamm changed the title Custom suites with no ids now throw standard error FI-2041: Custom suites with no ids now throw standard error Aug 31, 2023
@alisawallace alisawallace merged commit ec2d182 into main Aug 31, 2023
@alisawallace alisawallace deleted the FI-2041-bug-fix branch September 7, 2023 00:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants