Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING(v2): remove test runner; introduce test doubles #132

Merged
merged 71 commits into from
Apr 16, 2022

Conversation

ebebbington
Copy link
Member

@ebebbington ebebbington commented Oct 25, 2021

:(

Release Notes

  • BREAKING: remove test runner (Rhum.testPlan, Rhum.testSuite, Rhum.testCase, and hooks)
  • BREAKING: stub API (no need to stub a class to stub its members)
  • feat: add Fake()
  • feat: add Dummy()
  • feat: Add new methods to Mock()
    • expects(...).toBeCalled(...)
    • method(...).willReturn(...)
    • method(...).wilThrow(...)
    • verifyExpectations()
  • feat: pre-programmed method implementation for faking/mocking methods
    • this is used to help fakes take shortcuts
    • this is used to help mocks pre-program methods
  • feat: add interfaces so that they can be returned for improved type hinting
  • feat: build for cjs and es2015
  • refactor: mocks to use mixin (mocks are now extensions of the class they are mocking)
  • refactor: types are now stricter and provide better type hinting
  • test: move integration test files into unit tests
  • test: test fakes, dummies, mocks, and stubs

Copy link
Member

@Guergeiro Guergeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sad 😢

@crookse crookse force-pushed the breaking-remove-runner branch from a7795f9 to 44d47d1 Compare April 16, 2022 11:40
@crookse crookse force-pushed the breaking-remove-runner branch from 44d47d1 to a9b4bbe Compare April 16, 2022 11:42
@crookse crookse merged commit 17fb6ea into main Apr 16, 2022
@crookse crookse deleted the breaking-remove-runner branch April 16, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Major Merging this pull request results in a major version increment
3 participants