# Running tests in headless browser

**URL:** https://discourse.processing.org/t/running-tests-in-headless-browser/19127
**Category:** Summer of Code
**Created:** [March 29, 2020, 2:41am UTC](https://discourse.processing.org/t/running-tests-in-headless-browser/19127 "2020-03-29T02:41:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![endurance21](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/endurance21/32/8149_2.png) [@endurance21](https://discourse.processing.org/u/endurance21)
#### Post date: [March 29, 2020, 2:41am UTC](https://discourse.processing.org/t/running-tests-in-headless-browser/19127/1 "2020-03-29T02:41:45Z")

</div>

Library : p5.js-sound

I have almost completed my gsoc proposal for  
{ IMPROVE TEST COVERAGE In p5.js-sound library}  
, just i have to clear one thing, for

We are currently using travis ci for build passes on every pull request.

“TESTS RUN ON EVERY PULL REQUEST IN A HEADLESS BROWSER”

what i think above statements says that we should be able to run  
1.build (currently there)  
2.custom unit tests that we write in our tests folder( to be implemented)?.  
On every pull request made to repo.

Is thi so?.

In that case we only have to setup configuration files like

1.travis.yml( script : npm run build & & npm run tests)

2.configuring mocha to return the status (ok/not-okay) when it runs the tests that we wrote in tests folder. And then travis cloud server depending upon the status thrown by the process npm run tests, will allow or disallow the pull request to merge…

Is that we are supposed to achieve in this project?.

If anything else, please let me know, as i am about to submit the draft proposal…

@lmccart  
There is a commit of yours that adds travis.yml and configures it to run travis-ci on every pull request,

> <https://github.com/processing/p5.js-sound/pull/355>

  
can you Please help me regarding this…

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [March 29, 2020, 3:07pm UTC](https://discourse.processing.org/t/running-tests-in-headless-browser/19127/2 "2020-03-29T15:07:13Z")

</div>

4 posts were merged into an existing topic: [GSOC ideasList p5.js-sound](https://discourse.processing.org/t/gsoc-ideaslist-p5-js-sound/18961)

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [March 29, 2020, 3:07pm UTC](https://discourse.processing.org/t/running-tests-in-headless-browser/19127/3 "2020-03-29T15:07:13Z")

</div>


