Improve Testing

Aperta
#69 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@scissorsneedfoodtoo ci sta già lavorando.

Dal 6/12/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Currently the Cypress tests use local JSON page and post files sourced from the English Ghost instance (Content API, v3).

Going forward, we'll want to set up a Docker instance of Ghost with the following:

  • Articles, tags, and at least two authors (one for regular posts, another to act as a translator for a later feature)
  • A preconfigured Content API key for 11ty to use during test builds

Once the Dockerized Ghost instance has been set up, we'll need to:

  • Create a SQL dump and zip it
  • Create a workflow / modify the Cypress test GH Action (still in progress) to spin up the Docker container and restore the dump
  • Run the Cypress tests once the dump has been restored

We should also have detailed documentation on how to start the Docker image, unzip and restore the SQL dump locally, make modifications (add more articles, authors, and so on), and create / zip a new SQL dump.

Tasks

  • Use Dockerized Ghost instances for Cypress test suite. Closed via #207
  • Write tests for pre-production containers, and adjust workflow to run tests before the deployment step
Lingua principale
TypeScript
Stelle
65
Fork
59
Merge medio
16h 38m
PR unite (30g)
71

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di freeCodeCamp/news

Tutte le issue di freeCodeCamp/news

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.