Refactor E2E tests to run outside of project

オープン
#783 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

yarn test:e2e のエントリーポイントから始めて、E2E アプリケーションと coverage ディレクトリがどのように作成されるかを追跡します。既存の E2E コマンドを実行して生成されたファイルを特定し、それらの現在の場所を確認します。テスト後もチェックアウトしたプロジェクトが変更されず、coverage が Codecov 用に正しく配置されたままであれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Improvement

If we run the E2E tests using yarn test:e2e, most of the tests are run in the current project. While this is convenient for manual testing and analysis, it pollutes the git status and it can lead to committing e2e generated files. Furthermore, re-running tests with changes from previous runs results in tests not being deterministic.

Instead I propose that e2e test applications are copied to temporary directories, which are then used as working directories for the tests.

This should lead to yarn test:e2e leaving the checked out project untouched.

We might have to look into coverage directories being at the correct position for pushing to Codecov

主要言語
TypeScript
スター
297
フォーク
88
平均マージ
5時間 29分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-wizard のほかの issue

getsentry/sentry-wizard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。