Added: Gofer it squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfPhexample';
load. (Smalltalk at: #ConfigurationOfPhexample) load. Actually one test is failing in PharoCore 1.3: ForExampleStack>>shouldFailWhenPopEmpty Laurent. On Thu, Jun 23, 2011 at 10:18 AM, Tudor Girba <[hidden email]> wrote: Hi, |
Administrator
|
Phexample's matchers make me happy (like RSpec's used to before I learned about Smalltalk's live, open image). And they work in regular TestCases too, not just Phexamples. Two initial observations: * the #shouldXxx methods do not fit into OB's SUnit integration (I am fixing right now) * For some reason, they do not play well with Autotest - run PhexampleTest's tests in OB, and Autotest>>findRunAndShowTestsOf: gets passed (AnObsoleteClassForTestToBeDeleted1>>#action: "a CompiledMethod(119537664)") as a parameter, which leads to an error. Sean
Cheers,
Sean |
Administrator
|
Posted a moment too soon. PhexampleTest compiles methods in a test, the other examples work fine. S
Cheers,
Sean |
Administrator
|
In reply to this post by Sean P. DeNigris
Here's a temporary hack to integrate with Autotest: CompiledMethod>>isTestMethod ^ self belongsToTestCase and: [('test*' match: self selector) or: ['should*' match: self selector]].
Cheers,
Sean |
Thanks Sean for looking into this.
Doru On 24 Jun 2011, at 17:04, Sean P. DeNigris wrote: > > Sean P. DeNigris wrote: >> >> * For some reason, they do not play well with Autotest >> > > Here's a temporary hack to integrate with Autotest: > CompiledMethod>>isTestMethod > ^ self belongsToTestCase > and: [('test*' match: self selector) or: ['should*' match: self > selector]]. > > -- > View this message in context: http://forum.world.st/Re-ConfigurationOfPhexample-was-assert-equals-feels-backwards-tp3620784p3622753.html > Sent from the Pharo Smalltalk mailing list archive at Nabble.com. > -- www.tudorgirba.com "Every thing has its own flow." |
In reply to this post by Sean P. DeNigris
Thanks Sean.
I've fixed this in last Autotest. Gofer it squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfAutotest'; load. (Smalltalk at: #ConfigurationOfAutotest) loadDevelopment.
Laurent. On Fri, Jun 24, 2011 at 5:04 PM, Sean P. DeNigris <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |