typelevel / typelevel/cats-effect-testing

Implement ScalaTest ioRetrying with a generic effect type

Open
#471 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
194
Forks
42
Avg merge
5h 16m
Merged PRs (30d)
1

Description

In order to use the ioRetrying defined below, we need a concrete IO. I think it would better for this to take a generic effect type (even though it would use IO in the base trait), so that helper traits don't need to be tied to IO.

https://github.com/typelevel/cats-effect-testing/blob/0dbc4c3190e7970c4db37a5005aaad02e8c7e2af/scalatest/jvm/src/main/scala/cats/effect/testing/scalatest/AsyncIOSpec.scala#L31

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading scalatest/jvm/src/main/scala/cats/effect/testing/scalatest/AsyncIOSpec.scala at the linked ioRetrying definition. Trace how the base trait currently uses IO and how helper traits depend on it. Done means ScalaTest ioRetrying accepts a generic effect type while the base trait can still use IO and helper traits are no longer tied to IO.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.