Test coverage
doppiogancio opened this issue · 2 comments
doppiogancio commented
Hi, I just realized that tests are executed against an actual Jira endpoint and they are failing because, for example, I don't have an issue called TEST-155.
- Is this intended or did I wrongly configure the ENV file?
- I saw that some tests are 4-5 years old, could I collaborate and improve the test coverage?
lesstif commented
Hi @doppiogancio I'm sorry for the late reply.
you're a good point, Many test cases are hard coded in Unit tests, so it's not useful for most users.
- Many Issue Keys need set through Env files or run time argument.
- I always welcome user's PR :). so you can collaborate and improve all the test case!
doppiogancio commented
Hi @lesstif, I tried different approaches and now I understand why (maybe) people are discouraged from testing: curl it's not easy to mock.
Having an HTTP client would be much easier to increase test coverage, but replacing curl everywhere won't be that easy and fast.
I will come back to you with a proposal.