#22 Dependencies between lint and test

Closed
opened 5 years ago by sumpfralle · 1 comments

Most projects probably run linting before testing.

At the moment the order of execution cannot be specified properly:

  • test may depend on lint
  • but still specific tests (e.g. test-python) do not depend on lint-python

We could use one of the following approaches for solving this:

  • A) add a configuration variable (RUN_LINT_BEFORE_TEST) in order to let all modules add a module-specific dependency (e.g. test-python: lint-python)
  • B) add a test-prepare target, which depends on the linting (and maybe other details). All module-specific tests must depend on it - or we must ensure somehow (ordered dependencies?), that the test-prepare target is fulfilled first.
Most projects probably run linting before testing. At the moment the order of execution cannot be specified properly: * `test` may depend on `lint` * but still specific tests (e.g. `test-python`) do not depend on `lint-python` We could use one of the following approaches for solving this: * A) add a configuration variable (`RUN_LINT_BEFORE_TEST`) in order to let all modules add a module-specific dependency (e.g. `test-python: lint-python`) * B) add a `test-prepare` target, which depends on the linting (and maybe other details). All module-specific tests must depend on it - or we must ensure somehow (ordered dependencies?), that the `test-prepare` target is fulfilled first.
sumpfralle commented 3 years ago
Owner

The (undesired) relationship between lint and test was removed in 5a39e297c7.

The (undesired) relationship between `lint` and `test` was removed in 5a39e297c768a3a521f1a558e0cde785fb06e380.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.