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

chore(server): improve server tests #9958

Merged
merged 14 commits into from
Feb 2, 2024
Merged

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Feb 2, 2024

I left these server tests in a not-so-great state after #9948. Got around to improving them today with @Josh-Walker-GM. Want to add more, but this covers the new features I added, mainly the configuration around the web and api ports and hosts.

I've tried to add this to CI before but they were flakey. I feel like they're less flakey now and Josh helped me with retry logic. So I think we could try adding them to CI again and see how it goes.

You can run these tests after building the framework. cd into tasks/server-tests and run yarn vitest run. The tests also log the bins they're using and you can run those verbatim.

I split the tests up into separate files mainly because the terminal becomes unreadable if they're all in the same one.

@jtoar jtoar added the release:chore This PR is a chore (means nothing for users) label Feb 2, 2024
@jtoar jtoar added this to the chore milestone Feb 2, 2024
tasks/server-tests/vitest.setup.mts Outdated Show resolved Hide resolved
tasks/server-tests/vitest.setup.mts Show resolved Hide resolved
tasks/server-tests/bothServer.test.mts Outdated Show resolved Hide resolved
tasks/server-tests/vitest.setup.mts Outdated Show resolved Hide resolved
@jtoar jtoar enabled auto-merge (squash) February 2, 2024 19:21
@jtoar jtoar merged commit b930777 into main Feb 2, 2024
40 checks passed
@jtoar jtoar deleted the ds-jgmw-server/work-on-server-tests branch February 2, 2024 19:34
jtoar added a commit that referenced this pull request Feb 4, 2024
I left these server tests in a not-so-great state after
#9948. Got around to improving
them today with @Josh-Walker-GM. Want to add more, but this covers the
new features I added, mainly the configuration around the web and api
ports and hosts.

I've tried to add this to CI before but they were flakey. I feel like
they're less flakey now and Josh helped me with retry logic. So I think
we could try adding them to CI again and see how it goes.

You can run these tests after building the framework. `cd` into
`tasks/server-tests` and run `yarn vitest run`. The tests also log the
bins they're using and you can run those verbatim.

I split the tests up into separate files mainly because the terminal
becomes unreadable if they're all in the same one.

---------

Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
@Josh-Walker-GM Josh-Walker-GM modified the milestones: chore, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants