Skip to content

Test Framework with mocking #1008

Closed
Closed

Description

@Isakdl

Create a test framework so that we can run an endpoint in isolation for tests, complete with mocking the Session object, auth, etc.

Discussed in #1007

Originally posted by Orchius83 June 9, 2023
Morning everyone, I'm using Serverpod a lot and now I'm starting a big project on it.
I'm feeling that I miss the latest step to be totally productive that is the ability to test with a Mocked Session to save and retrieve Entities in my tests.
Is there anything that is in development right now?
Thank

Activity

  1. added
    enhancement
    on Jun 9, 2023
  2. SimonErich commented on Jan 6, 2024

    @SimonErich

    @Isakdl I am in the same boat.
    Just out of interest: Did you find a method to do proper and simple testing?

    I looked at a few examples in the repo tests itself. Especially the e2e tests look promising for a start, but it would be great, if there was less overhead of course. :)

  3. moved this to Version 2.0 - Nice to have 🥳 in Serverpod Frameworkson Feb 6, 2024
  4. moved this from Version 2.0 - Nice to have 🥳 to Version 2.0 - Priority 🌟 in Serverpod Frameworkson Feb 6, 2024
  5. moved this from Next 🌟 to Later 🥳 in Serverpod Frameworkson Jul 1, 2024
  6. SandPod commented on Aug 21, 2024

    @SandPod
    Contributor

    Closing this as a duplicate of: #2494

  7. moved this from Later 🥳 to Done 🚀 in Serverpod Frameworkson Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions