-
Notifications
You must be signed in to change notification settings - Fork 14
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 modifyOutput function to TestFormula. #378
Conversation
import com.instacart.formula.test.SimpleFormula.Input | ||
import com.instacart.formula.test.SimpleFormula.Output | ||
|
||
interface SimpleFormula : IFormula<Input, Output> { |
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.
Rewriting the tests using a much simpler formula.
observer.output(on) | ||
} | ||
|
||
class ParentFormula( |
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.
Replacing all of this with a simpler test formula
} | ||
} | ||
|
||
@Test fun `input passed to formula`() { |
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.
Not needed
63b1f70
to
9177e6a
Compare
JaCoCo Code Coverage 87.89% ✅
Generated by 🚫 Danger |
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.
I like this!
What
To simplify modifying a single property of the output, I'm adding
modifyOutput
function toTestFormula