AtomLinter / linter-eslint-node

ESLint plugin for Atom/Pulsar Linter (v8 and above)
https://web.pulsar-edit.dev/packages/linter-eslint-node
MIT License
4 stars 3 forks source link

Ideas for CI-only tests #7

Closed savetheclocktower closed 2 years ago

savetheclocktower commented 2 years ago

Certain tests we could run would require installing actual software into specific locations, thus are unfeasible to run on contributors' machines. If someone could figure out how to set up a CI server with the necessary environment, I could write the tests.

Testing nodeBin behavior

This would involve installing various versions of Node into known locations.

Testing behavior with various ESLint versions

We read ESLint's package.json to figure out what version we're dealing with. So to write specs against this behavior, we'd have to have at least three different dummy projects, each of which installs a different version of ESLint:

Things to test:

UziTech commented 2 years ago

We can setup GitHub Action workflows for the different setups. If we have some tests we only want to run in CI we can use process.env.CI.

something like:

if (process.env.CI) {
  describe('CI tests' () => {
      ...
    }
  );
}