-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw exception when @testwith annotation contains invalid datasets
The existing code was silently ignoring invalid JSON if it had found at least one valid dataset. It was using this behaviour to detect the end of the @testwith annotation (see for eg the testTestWithSimpleTextAfter test, which fails if a simple throw on invalid JSON is used). This fix treats a line as being part of the @testwith if it begins with a `[` character - since all datasets are required to be JSON arrays this should be reliable. It can then reliably throw if invalid JSON is found for any of the datasets.
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters