-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression test coverage report fials when run locally #959
Comments
I believe this is no longer happening. Can we close @mcking65? |
@howard-e I believe it is still an issue, but is a Windows-only one |
I ran into the message before when doing work locally and had to temporarily remove the
|
Okay I see, just ran on Windows as well and can verify I'm seeing the same |
I don't know if it's worth adding separate CI job just to do some sanity checking on Windows or not |
@nschonni #2151 should address this and ...
... can confirm the original issue still exists |
I do think it would be worthwhile to have that |
What do you think of something like this as a potential Windows specific fix @nschonni? aria-practices/test/util/report.js Lines 178 to 186 in 54cd3ff
// L:178
+ const isWin = process.platform === 'win32';
+
+ // fix for running regression-report on windows
+ const cmd = isWin ? 'node.exe' : 'node';
- const cmd = path.resolve(
+ const avaCmdPath = path.resolve(
__dirname,
'..',
'..',
'node_modules',
'ava',
'cli.js'
);
- const cmdArgs = [...allTestFiles, '--tap', '-c', '1'];
+ const cmdArgs = [avaCmdPath, ...allTestFiles, '--tap', '-c', '1'];
const output = spawnSync(cmd, cmdArgs);
// ... |
That could work, but what about leveraging the stubs that NPM creates in |
I'm thinking I might have used https://www.npmjs.com/package/cross-spawn in the past to get around some of this stuff |
Definitely with you there. Had initially tried with
Right, that would work well. I had wanted to avoid adding an extra package for this very small case unless there was no other choice |
Update test/util/report.js to fix an issue discovered in #959. Buffers being passed to `htmlparser2.parseDocument` is unsupported.
I created a branch with your suggestion @nschonni. How does this look to you? https://github.com/w3c/aria-practices/compare/bocoup/fix-issue-959 |
Update test/util/report.js to fix an issue discovered in #959. Buffers being passed to `htmlparser2.parseDocument` is unsupported.
When running the regression test report locally, I get an error that appears to say that ava is not generating any output for standard output:
The text was updated successfully, but these errors were encountered: