notebook

都内でWEB系エンジニアやってます。

jest

Jestの並列実行をGitLab-CIで行う

Jestの並列実行オプション Jestのv28から分割して実行できるオプションが追加された Jest CLI オプション · Jest jestjs.io --shard 1/3といった形式で実行できる 3分割する場合 --shard 1/3 --shard 2/3 --shard 3/3 というように3つコマンドを実行するとそ…

AngularのライブラリのテストにJestを使ってみる

この記事は Angular #2 Advent Calendar 2019 7日目の記事です ng g libraryで作成したAngularのライブラリに対してjestでテストを回せるようにしたのでやったことを書いていく 経緯 「テキストボックスの入力に関して指定秒数入力がなかった場合にイベント…

テスト結果の可視化にAllureFrameworkを使ってみる

allure-framework/allure2: Allure Framework is a flexible lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process extract maximum of information from everyd…