Skip to content

Add simulation flags to groups and tests#59

Closed
ljtucker wants to merge 7 commits intomainfrom
sim-flag
Closed

Add simulation flags to groups and tests#59
ljtucker wants to merge 7 commits intomainfrom
sim-flag

Conversation

@ljtucker
Copy link
Copy Markdown

Summary

Testing Guidance

@ljtucker ljtucker changed the title Add simulation flags to groups Add simulation flags to groups and tests Mar 27, 2026
@ljtucker ljtucker marked this pull request as draft March 27, 2026 19:11
@ljtucker ljtucker marked this pull request as ready for review March 30, 2026 21:09
Copy link
Copy Markdown
Contributor

@karlnaden karlnaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating rubocop is dangerous partly because of these new refactors, which seem to often be more trouble than they are worth. Probably a good idea to decide our policy on this kind of thing so that we have a go to approach. I'm fine with most of the changes as is, but there are some low-hanging fruit that I think better to actually address rather than disable.

I'm also inclined to have this merged into the support-v2.2.0 branch first instead of straight to main since that is where most of our activity is going.

Also - gemspec needs to be updated to have inferno_core 1.1.2 as the minimum required version:

spec.add_runtime_dependency 'inferno_core', '~> 1.1', '>= 1.1.2'

Comment on lines +121 to +126
# rubocop:disable Naming/PredicateMethod
def simulation_verification
user_input?
end
# rubocop:enable Naming/PredicateMethod

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple refactor to follow the style rather than disabling it, could be done for skip_if_empty in several places as well.

Suggested change
# rubocop:disable Naming/PredicateMethod
def simulation_verification
user_input?
end
# rubocop:enable Naming/PredicateMethod
def simulation_verification?
user_input?
end

title '<%= category%>'
<%- subgroup.each do |category, id_list| -%>
<%-
title_lines = category.to_s.split("\n").map(&:strip)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this got so much more complicated, but it doesn't look like it is using the erb templating paradigm. Can you explain the intention of this update so we can plan how to implement it in a cleaner way?

{
'$submit Element Support' => {
'Submission of claims to the $submit operation for must support validation' => submit_tests,
"[USER INPUT VALIDATION] Submit Request Must Support'" \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is the source of the complication in the group.rb.erb file. Generators harbor a lot of nutty code in the name of complex code re-use. I guess we leave it.

@karlnaden
Copy link
Copy Markdown
Contributor

moved into the 2.2 branch instead

@karlnaden karlnaden closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants