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

Add an in-memory feature group object #6

Open
aekoch opened this issue Aug 30, 2022 · 0 comments
Open

Add an in-memory feature group object #6

aekoch opened this issue Aug 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@aekoch
Copy link
Collaborator

aekoch commented Aug 30, 2022

Currently, there is a gap between the Feature object and the GherkinProject object. GherkinProject is built to interact with files on the file system, and so is inherently tied to disk. Feature can be initialized directly from text, so does not rely on any relationship with an object on disk. GherkinProject contains many functions which are convenient for interacting with groups of features, but because it is tied to disk it is 1. hard to test and 2. difficult to use in contexts that don't care about the files on disk.

Proposal: Add a FeatureSet object, which simply wraps multiple features, and refactor the utility functions in GherkinProject to use the utility methods on that object. This will make it easier to test the project layer, and allow use cases not strictly tied to features on disk.

@aekoch aekoch added the enhancement New feature or request label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant