Open StevenXL opened 6 years ago
Hi @StevenXL,
That's great to hear! This is a pretty small hobby project. It lacks many features, some things we don't have a solution for yet (like, paging! it's a bit embarrassing 😅), and—as you've noticed (and others—the testing isn't in the best place. But, if you're willing to choose-your-own-adventure here, I hope you can contribute!
The tests we have currently are integration tests that require non-test credentials which are read in from the ACCOUNT_SID
and AUTH_TOKEN
environment variables. Travis CI will inject these environment variables into any PR opened from a branch on the repository itself, but it will not inject them on PRs opened from forks (see here).
You can override ACCOUNT_SID
and AUTH_TOKEN
, but the integration tests currently hard-code phone numbers specific to the test account (see here and here). In order to be able to run these on any account, we need to
Just this would be an improvement for our integration tests, but we also really need unit tests, too. Right now, any changes to the JSON parsing have to be tested by way of the integration tests, which slows down development.
Hi Folks,
I'm new to the Haskell world, and I want to start contributing to an open-source library as a means of improving myself.
I picked this project because I'm a web developer by trade (though not training), and communicating with REST APIs is definitely in my wheel house.
That being said, how am I supposed to run the test suite for this library?
I have a running rest suite, I have twilio test credentials in the environment in which I am running the test suite, but then I get an error (the error is below).
It's obvious from the error that we are making a request to an endpoint that doesn't allow test credentials. Is the expectation for the test suite that live credentials would be put in there?