-
Notifications
You must be signed in to change notification settings - Fork 11
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
Synchronizing shared expression tests with frontend #1040
Conversation
…n backend, and no longer exists in this form on frontend)
…ger supported on frontend, as duplicate component IDs are now a hard error.
Quality Gate passedIssues Measures |
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.
Good!
We have a folder named test/Altinn.App.Core.Tests/LayoutExpressions/CommonTests/up-for-evaluation where you can put shared tests that don't (yet) work in backend |
Yes, I saw that. Was about to copy those folder over there when you wrote this comment, but after thinking more about it I came to the conclusion that I don't really like that pattern:
So, is there a good way to include them along with all the other test files, but ignore them in the tests instead? That way the diff between frontend and backend gets to be very clean, and you get updated tests whenever we sync across repos (and in the future if we convert to a monorepo, these tests will be ready for that as well). |
Yes, there is |
Description
I compared the folders with those in
app-frontend-react
, and updating tests to match.A few notes:
argv
. Positional arguments didn't seem to supportnull
, so I changed the signatures to do that.altinnRowId
to rows (back when that was implemented - frontend has no functionality to automatically add them)invalid
, but those have been removed in frontend as well (it's just very cumbersome to test that there, because it happens long before the expression engine is even ready).Related Issue(s)
Verification
Documentation