Skip to content

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Mar 16, 2020

Changes introduced by this PR:

  • Outdated Verify-based API is removed. This includes both client and server packages.
    Remaining bits related to VerifyAcknowledgements is going to be removed in the following PR.
  • ContextAwareTest abstract test suite base is introduced.

Improvements in BlackBoxBoundedContext:

  • It now can write events to EventStore so the user can arrange a test environment this way.
  • It no longer exposes eventBus() and commandBus().
  • subscribe(Topic) now returns SubscriptionFixture which can assert both entity states and event messages via IterableOfProtosSubject.

Changes to BlackBoxBoundedContext and removal of old Verify-based API are breaking. It's more or less safe to do since the number of users are small, and efforts for arranging full deprecating cycle will not pay off.

We're not running it through normal deprecation cycle since these testing utilities are not used already.
It's more practical to remove it sooner in favor of new Subject-based testing utilities.
This eliminates `GivenLifecycleFlags` class as a utility.
There is newer API, which exposes `archivedFlag()` and `deletedFlag()` as `BooleanSubject`.
@alexander-yevsyukov alexander-yevsyukov self-assigned this Mar 16, 2020
@codecov
Copy link

codecov bot commented Mar 16, 2020

Codecov Report

Merging #1249 into master will increase coverage by 0.1%.
The diff coverage is 89.06%.

@@             Coverage Diff             @@
##             master    #1249     +/-   ##
===========================================
+ Coverage     90.99%   91.09%   +0.1%     
+ Complexity     4828     4665    -163     
===========================================
  Files           631      596     -35     
  Lines         15129    14703    -426     
  Branches        846      831     -15     
===========================================
- Hits          13766    13394    -372     
+ Misses         1101     1049     -52     
+ Partials        262      260      -2

@alexander-yevsyukov alexander-yevsyukov changed the title Context aware text Improvements for testing utilities Mar 16, 2020
@alexander-yevsyukov alexander-yevsyukov changed the title Improvements for testing utilities Improvements for testing utilities (part 1) Mar 16, 2020
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review March 17, 2020 10:56
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov LGTM in general. Please see my comments and suggestions.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov alexander-yevsyukov merged commit b3f3959 into master Mar 17, 2020
@alexander-yevsyukov alexander-yevsyukov deleted the context-aware-text branch March 17, 2020 13:40
@dmitrykuzmin dmitrykuzmin mentioned this pull request Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants