Closed viveksyngh closed 5 years ago
LGTM. Can we find away to test it - or if that's too hard in the final method to figure out the URL outside and inject it then test that new method?
I think we can write a method to figure out URL and test that method. I will try again to setup derek. Do you have any documentation for that?
Documentation on how to write tests? There's lots of coverage in this project so I'd suggest copying the approach seen in another test file.
Failing that ask on slack.
Nope .. I was asking any documentation on how to setup derek ?
Tested against this repo. https://github.com/viveksyngh/openfaas-functions for this PR https://github.com/viveksyngh/openfaas-functions/pull/3 using below derek configuration.
curators:
- viveksyngh
features:
- dco_check
- comments
contributing_url: https://github.com/alexellis/derek/blob/master/CONTRIBUTING.md
@alexellis I have also added a new function which gets contributing URL and also added the unit test for that.
Awesome 🎉 !
Glad you were able to test it end-to-end like this too. Did it help having worked with GitHub Apps in OpenFaaS Cloud?
yeah .. that's for sure. It was really helpful.
Derek add label: help wanted
Derek remove label: help wanted
I've released and deployed Derek 0.6.2, let's try it out?
This commit adds contributing_url field to the .DEREK.yml file to point to contribution guide.
Signed-off-by: Vivek Singh vivekkmr45@yahoo.in
Description
Motivation and Context
How Has This Been Tested?
Test result and process added in comments below.
Types of changes
Checklist:
git commit -s