Skip to content

🚧 [Consistency] Adding empty file handling and test to all parsers#705

Merged
J12934 merged 14 commits intomainfrom
consistency/empty-files-parser-tests
Oct 13, 2021
Merged

🚧 [Consistency] Adding empty file handling and test to all parsers#705
J12934 merged 14 commits intomainfrom
consistency/empty-files-parser-tests

Conversation

@SebieF
Copy link
Contributor

@SebieF SebieF commented Oct 5, 2021

Closes #701.

When applied, all parsers are tested for an empty json file.
Where missing, empty test files have been added, error/empty file handling has been introduced to the parser and jest tests have been created.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make codeclimate checks happy

SebieF added 10 commits October 4, 2021 12:00
Added empty test files where they were missing

Signed-off-by: Sebastian <[email protected]>
Added empty test files where they were missing

Signed-off-by: Sebastian <[email protected]>
Check if datatype is string ==> No json data

Signed-off-by: Sebastian <[email protected]>
Either checking for undefined or if the type is string "[]" (and not an object)

Signed-off-by: Sebastian <[email protected]>
Signed-off-by: Sebastian <[email protected]>
Signed-off-by: Sebastian <[email protected]>
@SebieF SebieF added this to the v3.3.0 milestone Oct 5, 2021
@SebieF SebieF self-assigned this Oct 5, 2021
Signed-off-by: Sebastian <[email protected]>
J12934
J12934 previously approved these changes Oct 5, 2021
This makes the function shorter and clearer (and codeclimate happy)

Signed-off-by: Sebastian <[email protected]>
@J12934 J12934 merged commit a125bea into main Oct 13, 2021
@J12934 J12934 deleted the consistency/empty-files-parser-tests branch October 13, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚧 [Consistency] Test all parsers for handling of an empty result file

2 participants