Skip to content

Commit

Permalink
Run debug render tree tests in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Sep 16, 2019
1 parent 563f4fd commit b422db1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
- yarn ember build -prod
- yarn test

- name: Production (All Tests + Canary Features + Debug Render Tree)
env: DEBUG_RENDER_TREE=true
script:
- yarn ember build -prod
- yarn test

- name: Old Jquery and Extend Prototypes
env: TEST_SUITE=old-jquery-and-extend-prototypes
script:
Expand Down
4 changes: 4 additions & 0 deletions bin/run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function getBrowserRunner() {
}

function run(queryString) {
if (process.env.DEBUG_RENDER_TREE) {
queryString = `${queryString}&debugrendertree`;
}

let url = 'http://localhost:' + PORT + '/tests/?' + queryString;
return runInBrowser(url, 3);
}
Expand Down
4 changes: 4 additions & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
}

ENV['RAISE_ON_DEPRECATION'] = true;

if (QUnit.urlParams.debugrendertree) {
ENV['_DEBUG_RENDER_TREE'] = true;
}
})();
</script>

Expand Down

0 comments on commit b422db1

Please sign in to comment.