janus-idp / backstage-showcase

This repo is moving to https://github.com/redhat-developer/red-hat-developer-hub
https://janus-idp.io
Apache License 2.0
113 stars 151 forks source link

Testing Showcase #529

Closed kadel closed 1 year ago

kadel commented 1 year ago

There are currently no tests for showcase.

The only job we currently have is https://github.com/janus-idp/backstage-showcase/blob/main/.github/workflows/ci.yaml and it is not even working.

Phase 1: Verify that the Showcase can start and respond correctly (for each PR)

Phase 2: Create framework/tooling/scripts for easy adding more checks.

Developers should be able to simply define test scenarios where the HTTP check is performed based on the provided app-config.yaml and URL endpoint(s) with the return codes. The check should verify that the provided list of URLs returns the expected results when Showcase starts with the given config.

As a User Story, it would be something like this: As a developer working on Showcase, I want to easily verify that the plugin I've just added to Showcase was enabled correctly.

We don't want to test the plugin functionality, as this is the responsibility of the plugin tests, usually in the plugin repo. But we need to verify that the plugin gets enabled and starts correctly.

kadel commented 1 year ago

this is being work on in https://github.com/janus-idp/showcase-e2e