-
Notifications
You must be signed in to change notification settings - Fork 118
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
Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility #599
Disable FAIL_ON_UNKNOWN_PROPERTIES for forward compatibility #599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #599 +/- ##
============================================
+ Coverage 76.7% 76.75% +0.05%
Complexity 610 610
============================================
Files 81 81
Lines 2262 2263 +1
Branches 324 324
============================================
+ Hits 1735 1737 +2
Misses 308 308
+ Partials 219 218 -1 |
Thanks for the pull request! Please add a JUnit test that verifies no exception is thrown when an unknown XML property is present in the parsed XML. Something like this, note the addition of val unknownXml= """
<?xml version='1.0' encoding='UTF-8' ?>
<testsuites>
<testsuite random="prop" name="EarlGreyExampleSwiftTests" tests="4" failures="1" errors="0" skipped="0" time="51.773" hostname="localhost">
<testcase name="a()" classname="a" time="1.0" random="prop"/>
</testsuite>
</testsuites>
""".trimIndent()
val parsed= parseAllSuitesXml(unknownXml).xmlToString()
assertThat(parsed).isEqualTo(unknownXml) |
Merged. Thanks for contributing! |
Release :) ? |
I'm working on it. The Bitrise GitHub release step is failing. FTL finished the rollback so you shouldn't be broken anymore. |
yep I see FTL is passing. Thanks ! |
ping :) |
I haven't forgotten about this. 🙂 It's on my list. |
It just started happening again for us? 🤔 |
The Firebase team had a mistake in the rollback. It should be resolved now. |
This makes sure that any future additions to the XML by FTL does not break existing builds of flank and is more permissive in structure about deserialization of unknown properties.