Can't run effectful tests
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- testing
調査の方向性
Read the Test/QuickCheck.purs definition linked in the issue, especially the Gen-based property API. The report asks to support testing effectful functions without unsafePerformEffect; use the Blockly code2blockly then blockly2code round trip as the example. Done means an effectful property can express that round trip and verify the original code is returned.
索引モデルが issue の本文から書いたものです。
説明
I have a case that I think is quite legitimate where I want to quickcheck an effectful function however I can't because https://github.com/purescript/purescript-quickcheck/blob/v5.0.0/src/Test/QuickCheck.purs#L97 uses the concrete Gen monad.
My usecase is testing Blockly code2blockly and blockly2code functions. Since Blockly is a very mutable javascript library, both code2blockly and blockly2code have Effect types. In order to test my implementation of these functions I can take some code and basically run code2blockly followed by blockly2code and I should get the original code back. Currently I'm doing this with unsafePerformEffect 😱 but since tests are actually Effects I don't think this is really necessary.
- 主要言語
- PureScript
- スター
- 108
- フォーク
- 42
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/purescript-quickcheck のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
purescript/purescript-quickcheck#136 · コメント 1 件 ·
-
Lazy List Arbitrary Instance対応中かも @eviefp が 2207 日前に担当しました。 オープンtype: enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
purescript/purescript-quickcheck#111 · コメント 2 件 · リアクション 2 件 ·
-
type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
-
purs-0.15 type: breaking change
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
purescript/purescript-quickcheck#104 · コメント 12 件 ·
-
Shrinkingオープンtype: enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
purescript/purescript-quickcheck#103 · コメント 6 件 · リアクション 4 件 ·
purescript/purescript-quickcheck の issue をすべて見る
似ている issue
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jest-community/eslint-plugin-jest#2052 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
johanhaleby/occurrent#1505 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jeanibarz/knowledge-base-mcp-server#1262 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
future-agi/future-agi#4092 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信