Skip to content

Testing strategy #145

Closed
Closed

Description

@Tlacenka

There are currently several test suites, each approaching testing from a different POV. The outputs of child issues will be added as guidelines to our wiki.

Within this issue, I would like to:

  1. Document what is currently covered.
  2. Create issues for missing coverage based on findings from Document current state of user flows for both CLI and Portal #144
  3. Consider different structure or approach (what is mocked) for unit vs integration vs E2E tests.
  4. Consider other quality processes and practices (Storybook, FE testing) for both CLI and Portal.
  5. Kick off best practices/guidelines for writing tests.

Child issues:

Activity

  1. kristihoskova commented on Oct 25, 2023

    @kristihoskova

    Time-box for this spike is 1MD and after that we will decide what's next.

  2. BioPhoton commented on Oct 30, 2023

    @BioPhoton
    Collaborator

    consider helper functions for file reads in utils

  3. BioPhoton commented on Oct 30, 2023

    @BioPhoton
    Collaborator

    Write helper for the inner logic to share

    vi.mock('@code-pushup/portal-client', async () => {
      const module: typeof import('@code-pushup/portal-client') =
        await vi.importActual('@code-pushup/portal-client');
    
      return {
        ...module,
        uploadToPortal: vi.fn(
          async () => ({ packageName: '@code-pushup/cli' } as ReportFragment),
        ),
      };
    });
  4. added this to the 1. Internal MVP milestone on Nov 14, 2023
  5. BioPhoton commented on Nov 15, 2023

    @BioPhoton
    Collaborator

    Is there a open PR for this?

  6. BioPhoton commented on Nov 19, 2023

    @BioPhoton
    Collaborator

    I like the order of the issues! ❤️

  7. Tlacenka commented on Jan 12, 2024

    @Tlacenka
    CollaboratorAuthor

    The testing strategy principles can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions