Skip to content

Integration tests don't work on Windows #277

Open
@fsih

Description

@fsih

Here's the output. Running the tests also generates a file called ����� in the folder where you run them.

[email protected] tap /mnt/c/Users/DD/Git/scratch-render
tap test/unit test/integration

test/unit/DrawableTests.js ...............test/integration/index.html: 2: test/integration/index.html: Syntax error: newline unexpected
test/unit/DrawableTests.js .......................... 15/15
test/integration/index.html ........................... 0/1
not ok test/integration/index.html
timeout: 30000
file: test/integration/index.html
command: test/integration/index.html
args: []
stdio:
- 0
- pipe
- 2
cwd: /mnt/c/Users/DD/Git/scratch-render
exitCode: 2

test/integration/scratch-tests.js ...Error: wait("#file") timed out after 10000ms
. at Object. (/mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/src/util.ts:86:13)
at step (/mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/dist/src/util.js:40:23)
at Object.next (/mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/dist/src/util.js:21:53)
at /mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/dist/src/util.js:15:71
at __awaiter (/mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/dist/src/util.js:11:12)
at Timeout. (/mnt/c/Users/DD/Git/scratch-render/node_modules/chromeless/src/util.ts:82:36)
at ontimeout (timers.js:380:14)
at tryOnTimeout (timers.js:244:5)
at Timer.listOnTimeout (timers.js:214:5)
{ name: 'TAP', test: 'TAP' }
possible timeout: SIGTERM received after tap end

handles:
- type: ChildProcess
events: []
- type: Socket
events:
- end
- finish
- _socketEnd
- drain
- close
- error
- data
...

test/integration/scratch-tests/cat-touches-box.sb2: 1: test/integration/scratch-tests/cat-touches-box.sb2: PK♥♦: not found
test/integration/scratch-tests/cat-touches-box.sb2: 1: test/integration/scratch-tests/cat-touches-box.sb2: ¶: not found
test/integration/scratch-tests/cat-touches-box.sb2: 2: test/integration/scratch-tests/cat-touches-box.sb2: cannot create 90Q↨[!▲Gnf: Directory nonexistent
test/integration/scratch-tests/cat-touches-box.sb2: 2: test/integration/scratch-tests/cat-touches-box.sb2:0kL{♀project.jsonYQo6►v�: not found
test/integration/scratch-tests/cat-touches-box.sb2: 1: test/integration/scratch-tests/cat-touches-box.sb2: @߹N�: not found
test/integration/scratch-tests/cat-touches-box.sb2: 8: test/integration/scratch-tests/cat-touches-box.sb2: %☺ޣ↕@{3W§t#WǟwWvGݘg٣g.p►�s쀪∟k&�HVt♠Ik▼m►W.}h=6�↔s♀,☻Ɉ↕☼↕♦☺<¶"<Z618l/!▼4<■&@rx()L8↕q♣Gq$B>Ș►Iᤈ8޷AnȐ♦أ懶<L▼0
u.JrL$☻
!uussʺz$N5xB!5hTh6Uv↓Т(uZC~I☺fۅP5Vfg! F♀kr͞

test/integration/scratch-tests/cat-touches-box.sb2: 9: test/integration/scratch-tests/cat-touches-box.sb2: cannot open CG♦▲o▼►%A: No such file
test/integration/scratch-tests/cat-touches-box.sb2: 9: test/integration/scratch-tests/cat-touches-box.sb2: ǾD: not found
test/integration/scratch-tests/cat-touches-box.sb2: 9: test/integration/scratch-tests/cat-touches-box.sb2: cannot open _UΣÉ: No such file
test/integration/scratch-tests/cat-touches-box.sb2: 9: test/integration/scratch-tests/cat-touches-box.sb2: ☼]C☺y◄: not found
test/integration/scratch-tests/cat-touches-box.sb2: 9: test/integration/scratch-tests/cat-touches-box.sb2: X%א♥: not found
test/integration/scratch-tests/cat-touches-box.sb2: 10: test/integration/scratch-tests/cat-touches-box.sb2:
test/integration/scratch-tests/cat-touches-box.sb2: 11: test/integration/scratch-tests/cat-touches-box.sb2: Syntax error: word unexpected (expecting ")")
test/integration/scratch-tests.js ..................... 0/4 30s
cat-touches-box.sb2
not ok wait("#file") timed out after 10000ms
stack: |
Object. (node_modules/chromeless/src/util.ts:86:13)
step (node_modules/chromeless/dist/src/util.js:40:23)
Object.next (node_modules/chromeless/dist/src/util.js:21:53)
node_modules/chromeless/dist/src/util.js:15:71
__awaiter (node_modules/chromeless/dist/src/util.js:11:12)
Timeout. (node_modules/chromeless/src/util.ts:82:36)
at:
line: 86
column: 13
file: node_modules/chromeless/src/util.ts
function: Object.
test: cat-touches-box.sb2

ghost-hidden-collide.sb2
not ok wait("#file") timed out after 10000ms
stack: |
Object. (node_modules/chromeless/src/util.ts:86:13)
step (node_modules/chromeless/dist/src/util.js:40:23)
Object.next (node_modules/chromeless/dist/src/util.js:21:53)
node_modules/chromeless/dist/src/util.js:15:71
__awaiter (node_modules/chromeless/dist/src/util.js:11:12)
Timeout. (node_modules/chromeless/src/util.ts:82:36)
at:
line: 86
column: 13
file: node_modules/chromeless/src/util.ts
function: Object.
test: ghost-hidden-collide.sb2

tippy-toe-collision.sb2
not ok wait("#file") timed out after 10000ms
stack: |
Object. (node_modules/chromeless/src/util.ts:86:13)
step (node_modules/chromeless/dist/src/util.js:40:23)
Object.next (node_modules/chromeless/dist/src/util.js:21:53)
node_modules/chromeless/dist/src/util.js:15:71
__awaiter (node_modules/chromeless/dist/src/util.js:11:12)
Timeout. (node_modules/chromeless/src/util.ts:82:36)
at:
line: 86
column: 13
file: node_modules/chromeless/src/util.ts
function: Object.
test: tippy-toe-collision.sb2

not ok wait("#file") timed out after 10000ms
at:
line: 86
column: 13
file: node_modules/chromeless/src/util.ts
function: Object.
stack: |
Object. (node_modules/chromeless/src/util.ts:86:13)
step (node_modules/chromeless/dist/src/util.js:40:23)
Object.next (node_modules/chromeless/dist/src/util.js:21:53)
node_modules/chromeless/dist/src/util.js:15:71
__awaiter (node_modules/chromeless/dist/src/util.js:11:12)
Timeout. (node_modules/chromeless/src/util.ts:82:36)
test: TAP

test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: PK♥♦: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: cannot open ᚥ◄@: No such file
test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: ♂i▲↓Uf: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 2: test/integration/scratch-tests/ghost-hidden-collide.sb2: cannot create ↕3l‼→:↕: Invalid argument
test/integration/scratch-tests/ghost-hidden-collide.sb2: 2: test/integration/scratch-tests/ghost-hidden-collide.sb2:BL!0→♠♀roject.jsonY[o6¶~v�: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 3: test/integration/scratch-tests/ghost-hidden-collide.sb2: test/integration/scratch-tests/ghost-hidden-collide.sb2: 3: test/integration/scratch-tests/ghost-hidden-collide.sb2: cannot open 1o2yJ,snF↨: No such file24☼♀8d!♀→*ޘ=§K: not found

test/integration/scratch-tests/ghost-hidden-collide.sb2: 3: test/integration/scratch-tests/ghost-hidden-collide.sb2: test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: ♥rͷ_v6▲hjW▲=1y: not found

test/integration/scratch-tests/ghost-hidden-collide.sb2: 3: test/integration/scratch-tests/ghost-hidden-collide.sb2: 7♦rcLf◄=eG0: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 2: test/integration/scratch-tests/ghost-hidden-collide.sb2: ♫]QO+86j%ZcO►K}.x smvg͡fۮMuvia;)<¶▲J
‼x►XgQ;☻!ؖn?)<¶pR↑{uE,☼ڨ∟Zj
→∟X=/DʠJ¥]o♂UrPe5qf3VR■#tgySn: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 2: test/integration/scratch-tests/ghost-hidden-collide.sb2: wZ2rH0T: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 4: test/integration/scratch-tests/ghost-hidden-collide.sb2: cannot open J: No such file
test/integration/scratch-tests/ghost-hidden-collide.sb2: 4: test/integration/scratch-tests/ghost-hidden-collide.sb2: v*↕♥y-: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 8: test/integration/scratch-tests/ghost-hidden-collide.sb2: limǪE☻{?↕&͟^♥PK♥♦: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 9: test/integration/scratch-tests/ghost-hidden-collide: not found♣0.pngPNG
test/integration/scratch-tests/ghost-hidden-collide.sb2: 10: test/integration/scratch-tests/ghost-hidden-collide.sb2: →: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 11: test/integration/scratch-tests/ghost-hidden-collide.sb2: Syntax error: word unexpected (expecting ")")
test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: §,1~: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 1: test/integration/scratch-tests/ghost-hidden-collide.sb2: u}ڸ: not found
test/integration/scratch-tests/ghost-hidden-collide.sb2: 8: test/integration/scratch-tests/ghost-hidden-collide.sb2:
test/integration/scratch-tests/cat-touches-box.sb2 .... 0/1
not ok test/integration/scratch-tests/cat-touches-box.sb2
timeout: 30000
file: test/integration/scratch-tests/cat-touches-box.sb2
command: test/integration/scratch-tests/cat-touches-box.sb2
args: []
stdio:
- 0
- pipe
- 2
cwd: /mnt/c/Users/DD/Git/scratch-render
exitCode: 2

test/integration/scratch-tests/tippy-toe-collision.sb2: 1: test/integration/scratch-tests/tippy-toe-collision.sb2: PK♥♦: not found
test/integration/scratch-tests/tippy-toe-collision.sb2: 2: test/integration/scratch-tests/tippy-toe-collision.sb2:ӒL▲♠♫♠↓♀project.jsonYo6►~v: not found
test/integration/scratch-tests/tippy-toe-collision.sb2: 3: test/integration/scratch-tests/tippy-toe-collision.sb2: Syntax error: ")" unexpected
test/integration/scratch-tests/ghost-hidden-collide.sb2 .. 0/1
not ok test/integration/scratch-tests/ghost-hidden-collide.sb2
timeout: 30000
file: test/integration/scratch-tests/ghost-hidden-collide.sb2
command: test/integration/scratch-tests/ghost-hidden-collide.sb2
args: []
stdio:
- 0
- pipe
- 2
cwd: /mnt/c/Users/DD/Git/scratch-render
exitCode: 2

test/integration/scratch-tests/tippy-toe-collision.sb2 .. 0/1
not ok test/integration/scratch-tests/tippy-toe-collision.sb2
timeout: 30000
file: test/integration/scratch-tests/tippy-toe-collision.sb2
command: test/integration/scratch-tests/tippy-toe-collision.sb2
args: []
stdio:
- 0
- pipe
- 2
cwd: /mnt/c/Users/DD/Git/scratch-render
exitCode: 2

total ............................................... 15/23

15 passing (31s)
8 failing

npm ERR! Linux 4.4.0-43-Microsoft
npm ERR! argv "/home/dd/.nvm/versions/node/v7.7.4/bin/node" "/home/dd/.nvm/versions/node/v7.7.4/bin/npm" "run" "tap"
npm ERR! node v7.7.4
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] tap: tap test/unit test/integration
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] tap script 'tap test/unit test/integration'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the scratch-render package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tap test/unit test/integration
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs scratch-render
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls scratch-render
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /mnt/c/Users/DD/Git/scratch-render/npm-debug.log

npm ERR! Linux 4.4.0-43-Microsoft
npm ERR! argv "/home/dd/.nvm/versions/node/v7.7.4/bin/node" "/home/dd/.nvm/versions/node/v7.7.4/bin/npm" "run" "test"
npm ERR! node v7.7.4
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test: npm run lint && npm run docs && npm run build && npm run tap
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script 'npm run lint && npm run docs && npm run build && npm run tap'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the scratch-render package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run lint && npm run docs && npm run build && npm run tap
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs scratch-render
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls scratch-render
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /mnt/c/Users/DD/Git/scratch-render/npm-debug.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions