[Pharo-project] test pragmas
Hi, How can I mark a test as being an expected failure? Cheers, Doru -- www.tudorgirba.com "No matter how many recipes we know, we still value a chef."
On Tue, Sep 22, 2009 at 12:24 PM, Tudor Girba <girba@iam.unibe.ch> wrote:
How can I mark a test as being an expected failure?
you do not need a pragma. Instead, override #expectedFailures and return an array of selectors. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Actually it would make sense to use pragmas as the information gets closer to the test. Any taker? Adrian On Sep 22, 2009, at 13:24 , Damien Cassou wrote:
On Tue, Sep 22, 2009 at 12:24 PM, Tudor Girba <girba@iam.unibe.ch> wrote:
How can I mark a test as being an expected failure?
you do not need a pragma. Instead, override #expectedFailures and return an array of selectors.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
#expectedFailures could be implemented like this and we could support strategies: TestCase class>>expectedFailures ^ (Pragma allNamed: #expectedFailure from: self to: TestCase) collect: [ :each | each selector ] Lukas 2009/10/1 Adrian Lienhard <adi@netstyle.ch>:
Actually it would make sense to use pragmas as the information gets closer to the test. Any taker?
Adrian
On Sep 22, 2009, at 13:24 , Damien Cassou wrote:
On Tue, Sep 22, 2009 at 12:24 PM, Tudor Girba <girba@iam.unibe.ch> wrote:
How can I mark a test as being an expected failure?
you do not need a pragma. Instead, override #expectedFailures and return an array of selectors.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch
I was thinking that we discuss with james foster and niall about a versions for all the smalltalk in Suni3.3 Do you recall it lukas? On Oct 1, 2009, at 10:07 PM, Lukas Renggli wrote:
#expectedFailures could be implemented like this and we could support strategies:
TestCase class>>expectedFailures ^ (Pragma allNamed: #expectedFailure from: self to: TestCase) collect: [ :each | each selector ]
Lukas
2009/10/1 Adrian Lienhard <adi@netstyle.ch>:
Actually it would make sense to use pragmas as the information gets closer to the test. Any taker?
Adrian
On Sep 22, 2009, at 13:24 , Damien Cassou wrote:
On Tue, Sep 22, 2009 at 12:24 PM, Tudor Girba <girba@iam.unibe.ch> wrote:
How can I mark a test as being an expected failure?
you do not need a pragma. Instead, override #expectedFailures and return an array of selectors.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2009/10/1 Stéphane Ducasse <stephane.ducasse@inria.fr>:
I was thinking that we discuss with james foster and niall about a versions for all the smalltalk in Suni3.3 Do you recall it lukas?
Yeah, we listed the important features. Expected failures was one. Being able to categorize tests was another one, but I don't remember the other ones right now. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch
participants (5)
-
Adrian Lienhard -
Damien Cassou -
Lukas Renggli -
Stéphane Ducasse -
Tudor Girba