Skip to content

chore: remove stubbed tests/ scaffold, keep real coverage#1

Merged
jmfiola merged 1 commit into
mainfrom
chore/remove-stubbed-tests-dir
Jun 1, 2026
Merged

chore: remove stubbed tests/ scaffold, keep real coverage#1
jmfiola merged 1 commit into
mainfrom
chore/remove-stubbed-tests-dir

Conversation

@jmfiola
Copy link
Copy Markdown
Collaborator

@jmfiola jmfiola commented Jun 1, 2026

What

The top-level tests/ directory was abandoned scaffolding — a unit/integration/e2e/fixtures structure we never adopted. Real tests live alongside each module and example (modules/*/tests/, examples/*/tests/), which is what just test-unit actually discovers.

Changes

  • Relocate the one live test buried in the stub tree: tests/unit/modules/_shared/config/sensor/config.tftest.hclmodules/_shared/config/sensor/tests/module.tftest.hcl, and fix its module.source to ./. to match the canonical convention. This was the only coverage for the shared config/sensor module and was silently not running (wrong location). It now runs in just test-unit.
  • Delete the rest of tests/ — 13 placeholder READMEs plus a duplicate aws/sensor test already covered by modules/aws/sensor/tests/.
  • Drop the dead CI step that zipped a dummy lambda_payload.zip into the old tests/unit/... path. data.archive_file in modules/aws/sensor/lambda.tf builds the real zip at test time, so nothing consumed the dummy.
  • Fix CONTRIBUTING.md — pointed at the deleted tests/unit + go test; now points at just test / just test-unit.

Verification

just test-unit run locally with no pre-staged payload (simulating clean CI): all 14 suites green, 0 failures, including the relocated modules/_shared/config/sensor (4 passed).

No remaining references to the old tests/unit|integration|e2e|fixtures paths anywhere in the repo.

The top-level tests/ tree was abandoned scaffolding (unit/integration/e2e/
fixtures stubs); real tests live alongside each module and example.

- Relocate the only live test in the tree (shared config/sensor) to
  modules/_shared/config/sensor/tests/module.tftest.hcl so just test-unit
  actually discovers and runs it; fix its module source to ./.
- Delete the remaining stub READMEs and the duplicate aws/sensor test
  (already covered by modules/aws/sensor/tests/).
- Drop the dead CI step that zipped a dummy lambda_payload into the old
  tests/unit path; data.archive_file builds the real zip at test time.
- Point CONTRIBUTING.md at just test / just test-unit.
@jmfiola jmfiola merged commit 5787d18 into main Jun 1, 2026
6 checks passed
@jmfiola jmfiola deleted the chore/remove-stubbed-tests-dir branch June 1, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant