Skip to content

Releases: dionisiydk/Mocketry

Dependencies upgrade for Pharo 13

Choose a tag to compare

@dionisiydk dionisiydk released this 18 Sep 08:33
39df4f2
  • Dependencies upgrade for Pharo 13
  • Tonel format update

thanks to @oliveiraallex

v7.0.3

Choose a tag to compare

@dionisiydk dionisiydk released this 12 Jun 08:33
65798af

What's Changed

Full Changelog: v7.0.2...v7.0.3

Pharo 11 compatibility

Choose a tag to compare

@dionisiydk dionisiydk released this 21 Dec 23:31
5dd5e76
v7.0.2

Exclude Help from baseline (unsupported in Pharo11)

Update Ghost for debugger fixes

Choose a tag to compare

@dionisiydk dionisiydk released this 04 May 22:35
199ed3a
v7.0.1

Update Ghost for debugger fixes

Pharo 10 compatibility

Choose a tag to compare

@dionisiydk dionisiydk released this 03 May 22:43
e393190
v7.0.0

Fix baseline

Last version for Pharo <= 9

Choose a tag to compare

@dionisiydk dionisiydk released this 27 Apr 23:05
  • CI is migrated to github actions
  • Tests fixed to be compatible for Pharo 10 and 11
  • CI for Pharo 9 , 10 and 11

Compatibility with Pharo 9

Choose a tag to compare

@dionisiydk dionisiydk released this 10 Sep 16:31
ff1c572

Updates for compatibility with current development version of Pharo 9 related to TestEnvironment changes. The fix is compatible with Pharo 8 and 7 as well.

Thanks @JanBliznicenko

Mark baseline that project is metadataless

Choose a tag to compare

@dionisiydk dionisiydk released this 17 Mar 17:57
ea0e14b

From @jecisc :
This allows Metacello to better know the current version of the github project and not reload it when the right version is already in the image.
On a project with a lot of dependencies, it tries to load Mocketry around 40 times because this support is not there I think. Because I have multiple projects depending on Mocketry and for each project transitively depending on it, it tries to load it...

Prevent user mistakes with missing #stub message

Choose a tag to compare

@dionisiydk dionisiydk released this 20 Feb 22:48
39dc9a6

Expectation methods (teacher API) are marked with pragma . Such methods are not allowed to be send to mocks to prevent user mistakes when it forget #stub message with defining an expectation for a mock.
So now following examples will fail with explicit error:

mock someMessage willReturn: 1.
mock will: [2].
mock stub willRaise: Error new

New should expression #takeAWhile and more

Choose a tag to compare

@dionisiydk dionisiydk released this 24 Sep 21:58
2f89eac
  • New should expression is supported for behaviour validation:
[mock someMessage] fork.
mock should takeAWhile to receive someMessage.
  • Better validation of argument capture. Now the validation result knows that the subject was captured from concrete message send.
  • API for validation of all involved objects are changed.
    Following expressions are not anymore supported:
Any should receive someMessage.
(Kind of: Point) should receive someMessage

Now extra #inTest message is required:

Any inTest should receive someMessage.
(Kind of: Point) inTest should receive someMessage

In next version the "class word" based DSL will be deprecated by "Any expressions" :

Any object inTest should receive someMessage
(Any instanceOf: Point) inTest should receive someMessage.
(Any kindOf: Number) inTest should be even.
  • Better granularity of baseline: Core vs Tests. Core does not load any tests anymore (fixes #20).