Closed j0nm1 closed 4 years ago
@j0nm1 First of all: Thanks a ton for you contribution! It's very much appreciated! I could only have a quick glance at the changes, but it looks very well engineered (particularly the testing part). Since the diff is quite huge (functional as well as technical), it will take us some time to review. But for sure, we'll get it merged probably without further major-changes :+1: We'll keep you posted here.
Why did you create a separate package.json
file in the /test
folder instead of using the one in the project root?
@j0nm1 with respect to the test files:
It great that you added tests and also how you did that! However, I do have some questions / suggestions for the lot of the test messages:
@jschirrmacher I didn't even think about that, hope that's better now.
@mrsimpson I will look into what I can do. Currently, you definitely don't need all of the lines in the JSON files and I agree with you that it would be good to reduce the amount. You don't need a GitLab Repository to use the tests, I just created one to get the webhook content - mocked data would work as well.
@mrsimpson I suggest that @j0nm1 separates tests in a parallel pull request, so we have a starting point for testing. At the moment, I don't see tests in the repository, and I assume it would be fine to merge the add-on branch and start with a test branch in parallel?
That's absolutely fine! I was in fact more concerned for @j0nm1 exposing some information of his private identity on a public repository than I was concerned about code quality, since as you noted: Anything is better than nothing 😬 I'll just have to find the time and at least install and test it once, then this PR is good to go, imho.
@j0nm1 imho, you don't have to remove it unless you don't want your data exposed. If you're fine with that: Just leave them in here and strip them down in a separate PR. It's definitely good to have some tests, even if they can be streamlined!
@mrsimpson I don't have a problem with the data being public but I think it would be good to anonymize it nevertheless (at least with some basic find and replace). I will open a separate PR for the test suite when it's ready.
I removed all of the JSON files from the test suite and refactored the tests.
I'm sorry that it took a little while to test it. Now I've tested the app and it works great! Thanks for your contribution!
user_avatar: null
would generate an error on push webhookknown bugs:
Thanks @dkdndes for the task to work on this project and for your support!