Skip to content
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 test cases to cover common scenarios #16

Closed
28 tasks done
doodlewind opened this issue Jan 3, 2018 · 1 comment
Closed
28 tasks done

Add test cases to cover common scenarios #16

doodlewind opened this issue Jan 3, 2018 · 1 comment

Comments

@doodlewind
Copy link
Owner

doodlewind commented Jan 3, 2018

We have only one test case for now, which is poor. To ensure reliable releases, adding test cases covering these parts are planned:

Bumpover

  • bumper.bump with empty data
  • bumper.bump with empty rule
  • bumper.bump with invalid rule
  • bumper.bump with invalid data
  • bumper.bump with nested data and rule updating node value
  • bumper.bump with nested data and rule updating node key
  • bumper.bump with nested data and multi rules
  • bumper.bump with invalid struct
  • bumper.bump with nested data and one rule struct
  • bumper.bump with nested data and multi rule structs
  • bumper.bump with invalid option
  • bumper.bump with stop action on root
  • bumper.bump with stop action on node
  • bumper.bump with invalid action
  • bumper.bump with ignore unknown on node
  • bumper.bump with ignore unknown on root
  • bumper.bump with default value
  • bumper.bump with async resolve
  • bumper.bump with childKey unmatched node (allow stub)
  • bumper.test
  • bumper.assert

XMLBumpover

  • bumper.bump with empty data
  • bumper.bump with namespace tags
  • bumper.bump with CDATA tags
  • bumper.bump with stop action
  • bumper.bump with ignore unknown

JSONBumpover

  • bumper.bump with empty data (throws for now)
  • bumper.bump with nested data and multi rules
@doodlewind doodlewind changed the title Cover test cases to common scenarios Add test cases to cover common scenarios Jan 3, 2018
@doodlewind
Copy link
Owner Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant