Can't run effectful tests
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PureScript
- Stelle
- 108
- Fork
- 42
- Merge medio
- 2g 23h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di purescript/purescript-quickcheck
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
purescript/purescript-quickcheck#136 · 1 commento ·
-
Lazy List Arbitrary InstanceForse già presa @eviefp l’ha presa 2206 giorni fa. Apertatype: enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
purescript/purescript-quickcheck#111 · 2 commenti · 2 reazioni ·
-
type: documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 55/100
-
purs-0.15 type: breaking change
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
purescript/purescript-quickcheck#104 · 12 commenti ·
-
ShrinkingApertatype: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
purescript/purescript-quickcheck#103 · 6 commenti · 4 reazioni ·
Tutte le issue di purescript/purescript-quickcheck
Issue simili
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jest-community/eslint-plugin-jest#2052 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
johanhaleby/occurrent#1505 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
jeanibarz/knowledge-base-mcp-server#1262 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
future-agi/future-agi#4092 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno