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

feat: support release commits (and improve tests) #62

Merged
merged 11 commits into from
Oct 14, 2022

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Oct 11, 2022

📜 Description

  • refactor: speed up plugin tests by using mock CLI
  • test: refactor plugin_test
  • feat: support setting commits - closes Support for setting commit #19
  • fix integration test server (wip)

💡 Motivation and Context

💚 How did you test it?

added unit tests and manually on a personal project

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Oct 11, 2022

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 8a65d11

@vaind vaind marked this pull request as ready for review October 13, 2022 15:00
@vaind vaind mentioned this pull request Oct 13, 2022
6 tasks
CHANGELOG.md Outdated Show resolved Hide resolved
include_native_sources: true
upload_source_maps: true
auth_token: t
auth_token: t # TODO: support not specifying this, let sentry-cli use the value it can find in its configs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem was that this plugin could not log a proper error, sentry CLI outputs too much stuff when something goes wrong.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be solved too. I just didn't want to do this unrelated thing in the same PR.

Also relates to #23

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I didn't want to during the hack week, we can leave this open and fix it later.
My message was more about giving context on why it's like this.

});

test('works with pubspec', () async {
// TODO: because `url` param affects all commands, make it a test-group argument and run all test cases with/without it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something that we should address in this PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't want to blow this up too much but since you've already seen tests without that change, I've done it now.

@marandaneto
Copy link
Contributor

@vaind Amend the README, https://github.com/getsentry/sentry-dart-plugin/blob/main/README.md#configuration-optional
So users know how to use it.

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

Successfully merging this pull request may close these issues.

Support for setting commit
2 participants