-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: generate browser/headless test suite
Fixes: #315
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
echo $PWD | ||
|
||
file_list=$(ls -1 test/*.js) | ||
requires="" | ||
|
||
for f in $file_list ; do | ||
echo "Processing $(basename ${f})" | ||
requires=$requires"require('../$(basename ${f})');"$'\n' | ||
done | ||
|
||
# echo $requires | ||
cat > test/browser/index.js << EOF | ||
// This is a generated file. Do not modify by hand | ||
'use strict'; | ||
${requires} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
// webpack needs to know about all of our test files to generate | ||
// its browser based bits. This is the entrypoint for browser/headless | ||
// testing. | ||
// This is a generated file. Do not modify by hand | ||
'use strict'; | ||
|
||
// We have to hard code the test file names because fs.readdirSync | ||
// and friends won't really work in a browser, now will they? | ||
require('../enable-disable-test'); | ||
require('../circuit-shutdown-test.js'); | ||
require('../common.js'); | ||
require('../enable-disable-test.js'); | ||
require('../error-filter-test.js'); | ||
require('../half-open-test.js'); | ||
require('../health-check-test.js'); | ||
require('../hystrix-test.js'); | ||
require('../semaphore-test.js'); | ||
require('../test.js'); | ||
require('../volume-threshold-test.js'); | ||
require('../warmup-test.js'); | ||
|