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

Test Plugin 🔌 #1778

Open
RobAndrewHurst opened this issue Dec 18, 2024 · 1 comment
Open

Test Plugin 🔌 #1778

RobAndrewHurst opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
RFC Request for Comment or Change. Testing Changes relating to existing or new unit tests.

Comments

@RobAndrewHurst
Copy link
Contributor

Test Plugin 🔌

We need the ability to run these tests core/custom with a plugin.

Requirements

  • The plugin will need to have the ability to be configured.
    • Ability to run core.
    • Show/hide summary.
    • quite/loud.
    • add in custom test functions.
  • Trigger
    • With button.
    • Via means of web hooks.
    • Other alternatives welcome. (cron job would be awesome too).
  • Run a specific test or suite on a layer.
    • Also need to have similar kind of configurations as the locale plugin.
@RobAndrewHurst RobAndrewHurst added RFC Request for Comment or Change. Testing Changes relating to existing or new unit tests. labels Dec 18, 2024
@RobAndrewHurst RobAndrewHurst self-assigned this Dec 18, 2024
@simon-leech
Copy link
Contributor

simon-leech commented Dec 20, 2024

Integrity Test

  • The integrity test should be accessible via the URL parameter integrity=true
  • The integrity test forms the basis for layer/location testing on an application and can be ran either locally or on a deployed application.

Requirements
The integrity test should loop through every locale available to that user and run the tests.
The tests should attempt to do these things:

  1. Turn on every layer accessible to the user
  2. Select a location on every layer accessible to the user (turning on all dataviews too)
  3. Add a new location on every editable layer accessible to the user
  4. Delete that new location on every editable layer accessible to the user
  5. Turn on all filters on every layer accessible to the user
  6. Turn on all themes on every layer accessible to the user
  7. Run the Template Test on the Workspace API to check for failing or missing templates

Each test should return a pass or fail that is stored to the layer describe.
This includes errors for failing themes and failing filters.

A nice to have too would be the ability to test the gazetteer by just providing a 'test' word and checking for any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request for Comment or Change. Testing Changes relating to existing or new unit tests.
Projects
None yet
Development

No branches or pull requests

2 participants