Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run all unit tests on CI. #505

Merged
merged 5 commits into from
Jun 24, 2024
Merged

Run all unit tests on CI. #505

merged 5 commits into from
Jun 24, 2024

Conversation

SamirTalwar
Copy link
Contributor

@SamirTalwar SamirTalwar commented Jun 24, 2024

What

We were only running a subset of unit tests on CI. Let's run all of them.

How

Instead of trying to list the (growing) package names, let's just filter out the database tests.

This also updates the snapshots to include the new connection URI default value, as these tests were failing.

I had to move some tests into the databases-tests package as they weren't really unit tests.

We were only running a subset of unit tests on CI.

Instead of trying to list the (growing) package names, let's just filter
out the database tests.

This also updates the snapshots to include the new connection URI
default value, as these tests were failing.
Copy link
Contributor

@soupi soupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. I assume the tests are failing because we didn't start the relevant databases for the configuration tests. We could:

  1. Start them in the "test-unit", or
  2. Add them to "test-ndc-postgres-with-database", or
  3. Create a separate job for them

I think (2) or (3) are better than (1).

@SamirTalwar
Copy link
Contributor Author

@soupi, I have moved the CLI and configuration tests causing problems into databases-tests.

Copy link
Contributor

@soupi soupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yofi

@soupi
Copy link
Contributor

soupi commented Jun 24, 2024

@SamirTalwar test unit do not seem to be running. Probably need to change the name of the test in github settings?

@soupi
Copy link
Contributor

soupi commented Jun 24, 2024

I've made the change.

@SamirTalwar SamirTalwar added this pull request to the merge queue Jun 24, 2024
Merged via the queue into main with commit 6bcdef5 Jun 24, 2024
31 checks passed
@SamirTalwar SamirTalwar deleted the samirtalwar/run-all-tests branch June 24, 2024 12:17
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