SDITools / adobeanalyticsr

R Client for Adobe Analytics API v2.0
Other
18 stars 9 forks source link

Unit tests and refactoring #115

Closed charlie-gallagher closed 2 years ago

charlie-gallagher commented 2 years ago

Hi @benrwoodard, first, if you'd like to merge this into a different branch than 'master', feel free to redirect this.

Anyway, I was traveling the past few days so I took a shot at unit tests for the package using testthat. I didn't try to test everything, just those features that were easily testable without an internet connection.

This led to a lot of refactoring, but no feature changes besides the changes I submitted in the other merge request. Fortunately, I didn't catch many existing bugs, but the revised code I think is much better and easier to use as we add new features.

I still consider this a work in progress, but I think it's a good step forward.

Summary

Requests for Comment

benrwoodard commented 2 years ago

I have been wanting to add unit tests to the package but obviously the api requests were hindering that. Now that you have got the development in a much more modular focus, this makes a lot of sense. Thank you again for the hard work. Let me look over this and get back with you on where I think it should live while developing it.

charlie-gallagher commented 2 years ago

@benrwoodard I've merged in changes from master, so that this has no conflicts any more.