-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests need some love #1009
Comments
Good catch on Ideally, tests should be in shared -- however, tests which rely on |
Ah, the explanation makes sense actually :) |
Is there any particular reason why |
Not that I recall
… On Dec 2, 2017, at 11:59 AM, Fabio Labella ***@***.***> wrote:
Is there any particular reason why EventuallySupport can't be in shared?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just found out the reason I think. |
Ok, I'm posting rough guidelines about what can be done here:
Obviously multiple people can work on this, every little helps :)
|
It may be worth exploring some mutation testing. |
Heh a former colleague of mine is the author of the leading mutation testing framework (PITest), it used to have a scala module ages ago, but it might not work anymore since it's byte code based. A mutation testing framework based on scalameta sounds like a nice project for someone :) EDIT: by "tens of faulty tests" I meant in my career, not in fs2's codebase 😂 |
Closing this one out -- let's create some smaller / more focused issues for anything left outstanding. |
First, a little puzzle:
The first test correctly fails, but the second succeeds! This means that, at a minimum, the current RefSpec is completely broken (I'm fixing it as part of the Ref PR). I haven't investigated but there might well be other tests that should be failing and aren't. ( 😱 )
Then, I'd say we need to bring some order to the way assertions are run: some are run with
unsafeRunSync
, others withunsafeToFuture.map
(up to the bug above), plus there are some helpers for Streams likerunLog
andrunLogF
. Ideally a single way of running them (or some guidelines on how to pick) would be great, or even better we can create a custom matcher that does what we want (I've done it for Task in specs2, don't know about scalatest).Third, I'm a bit unsure about the criterion to put tests in jvm rather than shared, thoughts?
Fourth, if/when these points are addressed, a cleanup of the test suite in this direction needs to be done
The text was updated successfully, but these errors were encountered: