Skip to content

Conversation

mantasak
Copy link

@mantasak mantasak commented Jan 14, 2022

Description

Removed usage of should and new Scope from specs2 tests.
should clashes with an expectation in Specs2 v5.
Scope is no longer available in Specs2 v5.

should can be used in specs2 v5, however in test classes must extend ExtendedBlockDsl, which is not available in v4. Making it cross-compatible for v4 and v5 would require to write a custom 'should' in the rules_scala repo, which is not great.

I understand it is not great in terms of spec formulation, but I do not see a cleaner way for now.

Motivation

Prerequisite for scala3 support. Scala3 build requires specs2 v5.

@mantasak mantasak marked this pull request as ready for review January 14, 2022 08:29
@simuons simuons merged commit ab1bc5b into bazel-contrib:master Jan 14, 2022
@mantasak mantasak deleted the scala3-remove-specs2-scope branch January 14, 2022 09:02
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.

3 participants