summingbird icon indicating copy to clipboard operation
summingbird copied to clipboard

Create some tests that act as a contract for all Platforms (PlatformLaws)

Open isnotinvain opened this issue 10 years ago • 4 comments

Writing the tests for SparkLaws lead me to think that there should really be a platform agnostic set of laws, or at least a PlatformLaws base class. There's a lot of overlap with the scalding platform in these tests. Having a PlatformLaws test suite would also better describe the contract and expected behavior of all platforms.

isnotinvain avatar May 21 '14 00:05 isnotinvain

Anybody working on that? I would like to try do that. For now that test should be base for ScaldingLaws, StormLaws and SparkLaws. Am I correct? Should I use specs2?

adamkozuch avatar Feb 18 '15 02:02 adamkozuch

Great! Noone's working on this, afaik. We also have MemoryLaws and ConcurrentMemoryLaws. I believe we prefer using scalatest now, @johnynek please advise.

egonina avatar Feb 18 '15 18:02 egonina

I'm not sure but we might need two base sets of laws, laws for online and laws for offline

isnotinvain avatar Feb 18 '15 19:02 isnotinvain

If ScalaTest should it be 2.2.2 version? I noticed val with version in Build.scala but no dependency.

adamkozuch avatar Feb 18 '15 20:02 adamkozuch