Skip to content

test/integration: mark more tests as slow#1836

Open
alxndrsn wants to merge 1 commit into
getodk:masterfrom
alxndrsn:slow-test-update
Open

test/integration: mark more tests as slow#1836
alxndrsn wants to merge 1 commit into
getodk:masterfrom
alxndrsn:slow-test-update

Conversation

@alxndrsn
Copy link
Copy Markdown
Contributor

@alxndrsn alxndrsn commented May 26, 2026

Mark all tests with @slow which:

  • explicitly declare this.timeout(...)
  • took more than 300ms on my computer

This should make make test-fast more useful. For me, it sped it up from ~3m25s to ~2m40s.

What has been done to verify that this works as intended?

Ran make test-fast.

Why is this the best possible solution? Were any other approaches considered?

I think it's reasonably logical. Adding the tests between 100-200ms might save another 10 seconds.

An additional extension might be to update make test to run:

  1. unit tests
  2. fast integration tests
  3. slow integration tests

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No effect.

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass, or witnessed Github completing all checks with success
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

Mark all tests with `@slow` which:

* explicitly declare `this.timeout(...)`
* took more than 300ms on my computer

This should make `make test-fast` more useful.  For me, it sped it up from ~3m25s to ~2m40s.
@alxndrsn alxndrsn marked this pull request as ready for review May 26, 2026 15:57
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.

2 participants