Skip to content

[Core] Rework backend #1776

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

Merged
merged 3 commits into from
Sep 22, 2019
Merged

[Core] Rework backend #1776

merged 3 commits into from
Sep 22, 2019

Conversation

mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Sep 15, 2019

Summary

Introduces the backend module. With this module backend
implementations only need to use dependencies from
io.cucumber.core.backend. This will allow us to introduce the
module system later on

The implementation is not yet perfect. Classpath scanning and
resource loading is located in other modules. Removing this
depends on #1526 and removal of type registry configurer which
depends on #1768 .

Fixes #1386 because steps can now see if an exception came from
user code or actual backend.
Removes timeout which would close #1695 earlier then expected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

  • I've added tests for my code.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@coveralls
Copy link

coveralls commented Sep 15, 2019

Coverage Status

Coverage increased (+0.2%) to 87.486% when pulling 81af222 on rework-backend into 14e6ffd on master.

Introduces the backend module. With this module backend
implementations only need to use dependencies from
`io.cucumber.core.backend`. This will allow us to introduce the
module system later on.

This required duplication of the invoker and status classes
but as these relatively simple (after deprecation) this
duplication is ok. It is also worth noting that the invokers
for Java8 and Java are notably different.

The common concern, providing proper exception messages
has been pushed up to core.

Fixes #1386
@mpkorstanje mpkorstanje marked this pull request as ready for review September 22, 2019 12:07
@mpkorstanje mpkorstanje merged commit 1f90854 into master Sep 22, 2019
@mpkorstanje mpkorstanje deleted the rework-backend branch September 22, 2019 12:41
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.

[Core] Remove timeout Improve errors thrown by StepDefinition.execute
2 participants