Test Framework, HUnit

Hi, I started using Test Framework following the example of the lens library, specifically using Test.Framework.TH. It looks really nice, however I noticed that the TH project hasn't had any activity in 2 years ... plus the whole test framework project is very light on docs. I've been happy with straight HUnit, but I'm wanting something more structured to bring others into the project I'm working on. 1) Are there more resources on TF? 2) Is TF-TH actively maintained? Cheers, Stuart

I believe test-framework has been abandoned. Use tasty instead. Janek Dnia środa, 22 października 2014, spopejoy napisał:
Hi,
I started using Test Framework following the example of the lens library, specifically using Test.Framework.TH. It looks really nice, however I noticed that the TH project hasn't had any activity in 2 years ... plus the whole test framework project is very light on docs.
I've been happy with straight HUnit, but I'm wanting something more structured to bring others into the project I'm working on.
1) Are there more resources on TF? 2) Is TF-TH actively maintained?
Cheers, Stuart
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Jan Stolarek
I believe test-framework has been abandoned. Use tasty instead.
Janek
Dnia środa, 22 października 2014, spopejoy napisał:
Hi,
I started using Test Framework following the example of the lens library, specifically using Test.Framework.TH. It looks really nice, however I noticed that the TH project hasn't had any activity in 2 years ... plus the whole test framework project is very light on docs.
I've been happy with straight HUnit, but I'm wanting something more structured to bring others into the project I'm working on.
1) Are there more resources on TF? 2) Is TF-TH actively maintained?
Cheers, Stuart
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Hmm ... Tasty's cool but there's some funny business: * What's up with "Exception: ExitSuccess"? Why does a test framework need to throw an exception to exit? * Why does Tasty rewrite HUnit? They left out some nice features, like the (~:) operator, allowing quick suite authoring a la 'test = "foo" ~: [ bar @?= baz]' ... Cheers, Stuart

On 23/10/14 00:01, spopejoy wrote:
Hmm ... Tasty's cool but there's some funny business:
* What's up with "Exception: ExitSuccess"? Why does a test framework need to throw an exception to exit?
It is the standard way for Haskell programs to exit. See System.Exit (http://bit.ly/1vOHwTC). I guess you're seeing this text because you're running the test suite from ghci. When you run it as a compiled executable, you don't see this message.
* Why does Tasty rewrite HUnit?
To quote the changelog (http://bit.ly/1vOIE9W), this is motivated by: * efficiency (one less package to compile/install) * reliability (if something happens with HUnit, we won't be affected)
They left out some nice features, like the (~:) operator, allowing quick suite authoring a la 'test = "foo" ~: [ bar @?= baz]' ...
You should be able to define this operator for Tasty quite easily. Even before the dependency on HUnit was dropped, that HUnit operator wouldn't work because Tasty's test are not the same as HUnit tests (though both build upon HUnit's assertions). Nor does it work with test-framework-hunit, if I'm not mistaken. Roman

Jan Stolarek wrote:
I believe test-framework has been abandoned. Use tasty instead.
Also look at Hspec which is actively maintained and well documented. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

its now in the github.com/haskell org, and i think PRS etc will be merged
in if you do any ! :)
On Wed, Oct 22, 2014 at 3:48 PM, spopejoy
Hi,
I started using Test Framework following the example of the lens library, specifically using Test.Framework.TH. It looks really nice, however I noticed that the TH project hasn't had any activity in 2 years ... plus the whole test framework project is very light on docs.
I've been happy with straight HUnit, but I'm wanting something more structured to bring others into the project I'm working on.
1) Are there more resources on TF? 2) Is TF-TH actively maintained?
Cheers, Stuart
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Carter Schonwald
-
Erik de Castro Lopo
-
Jan Stolarek
-
Roman Cheplyaka
-
spopejoy