Skip to content

npm test targets for win and unix #246

@gibfahn

Description

@gibfahn

So as part of the process of running modules on Windows, we're running into some issues as the npm test command on many modules is Unix specific.

I can see three possible solutions to this problem:

  1. Work out what commands tests should be using, by finding something that works with Windows and Unix. Raise PRs against the modules to get them to update their test targets. If anyone is using bash-specific test scripts, encourage them to use Node scripts instead.
  2. Work out a different command and npm target (e.g. npm run-script test-win) for windows, raise PRs against the modules adding this command.
  3. Give up and use Git bash (to the extent that this actually resolves the issues).

I'd say 3 is the least work (and it's what we're doing at the moment), but Git bash isn't officially supported by Node for windows, so it's probably not the best way to go.

1 would be the ideal solution, the question is whether there is a standard npm test command that can be used. For npm itself, @iarna suggested this (option 1), which works on windows, but then later suggested this (option 2), which is a separate windows command.

Would love to hear views from someone who's had to deal with this before on how to proceed with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions