> On 3 Apr 2018, at 21:56, Christophe Demarey <[email protected]> > wrote: > > Nice addition! > I should say that names are not really intention revealing. > What about haltIfTestExecutionEnvironment and > haltIfDefaultExecutionEnvironment ? > To long and too implementation centered.
I would even shorten it to haltIfTest and haltIfNotTest. >> Le 2 avr. 2018 à 21:12, Marcus Denker <[email protected] >> <mailto:[email protected]>> a écrit : >> >> Hi, >> >> As we can not very easily decide if we are inside a test execution or not >> there was the idea to have special #halt messages >> >> https://pharo.fogbugz.com/f/cases/20151/new-halt-messages >> <https://pharo.fogbugz.com/f/cases/20151/new-halt-messages> >> >> This PR implements them: >> >> https://github.com/pharo-project/pharo/pull/1177 >> <https://github.com/pharo-project/pharo/pull/1177> >> >> There is now #haltIfInsideTest and #haltfOutsideTest. In addition, the PR >> adds a helper method to make checking if the current >> execution environment is a test run a bit easier: >> "CurrentExecutionEnvironment value isTest”. >> >> Marcus >
