# Testing a Discourse API client on Travis-CI

**URL:** <https://meta.discourse.org/t/testing-a-discourse-api-client-on-travis-ci/42947>\
**Category:** Development\
**Created:** [April 21, 2016, 7:15pm UTC](https://meta.discourse.org/t/testing-a-discourse-api-client-on-travis-ci/42947 "2016-04-21T19:15:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sckott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sckott/32/115359_2.png) [@sckott](https://meta.discourse.org/u/sckott)\
**Post date:** [April 22, 2016, 2:11am UTC](https://meta.discourse.org/t/testing-a-discourse-api-client-on-travis-ci/42947/3 "2016-04-22T02:11:07Z")

</div>

I have a R client for the Discourse API at [GitHub - sckott/discgolf: Discourse API R client · GitHub](https://github.com/sckott/discgolf)

My test suite currently uses a Discourse installation I maintain. I’d prefer to test against a Discourse installation setup each time Travis is run (or cached if possible on Travis).

I could test against stored JSON blobs - but I’d like to see if I can test against a running Discourse installation if possible, and not a real installation with real users - that’s why I want one installed for testing.

As far as examples, it’s the entire test suite I want to run, but here is an example testing against the `/posts` route [discgolf/tests/testthat/test-posts.R at master · sckott/discgolf · GitHub](https://github.com/sckott/discgolf/blob/master/tests/testthat/test-posts.R)

---

_[View the full topic](https://meta.discourse.org/t/testing-a-discourse-api-client-on-travis-ci/42947)._
