Skip to content

Commit

Permalink
added async py3 tests launching to run-test.js (launch with --python3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Sep 18, 2017
1 parent 93e893a commit 78cd40e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A tests launcher. Runs tests for all languages and all exchanges, in
parallel, with a humanized error reporting.
Usage: node run-tests [--php] [--js] [--python] [--es6] [exchange] [symbol]
Usage: node run-tests [--php] [--js] [--python] [--python3] [--es6] [exchange] [symbol]
--------------------------------------------------------------------------- */

Expand Down Expand Up @@ -113,10 +113,10 @@ const testExchange = async (exchange) => {
const args = [exchange, ...symbol === 'all' ? [] : symbol]
, allTests = [

{ language: 'JavaScript', key: '--js', exec: ['node', 'test.js', ...args, ...keys['--es6'] ? ['--es6'] : []] },
{ language: 'Python', key: '--python', exec: ['python', 'test.py', ...args] },
{ language: 'Python 3', key: '--python3', exec: ['python3', 'test.py', ...args] },
{ language: 'PHP', key: '--php', exec: ['php', '-f', 'test.php', ...args] }
{ language: 'JavaScript', key: '--js', exec: ['node', 'test.js', ...args, ...keys['--es6'] ? ['--es6'] : []] },
{ language: 'Python', key: '--python', exec: ['python', 'test.py', ...args] },
{ language: 'Python 3', key: '--python3', exec: ['python3', 'test_async.py', ...args] },
{ language: 'PHP', key: '--php', exec: ['php', '-f', 'test.php', ...args] }
]
, selectedTests = allTests.filter (t => keys[t.key])
, scheduledTests = selectedTests.length ? selectedTests : allTests
Expand Down

0 comments on commit 78cd40e

Please sign in to comment.