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

[refactoring] model the precondition object #228

Open
ngarbezza opened this issue Jul 13, 2022 · 0 comments
Open

[refactoring] model the precondition object #228

ngarbezza opened this issue Jul 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ngarbezza
Copy link
Owner

Problem

We have a duplication problem that is generated by the repeated validations/preconditions we need to run on all the user input (suites, tests, assertions) before running a test suite or even considering it a valid one.

Proposed solution

Introduce the precondition object that is responsible for doing something like:

if(conditionIsNotMet) {
  throw new PreconditionError(errorMessage)
}

condition and error message must be provided by the user

@ngarbezza ngarbezza added the enhancement New feature or request label Jul 13, 2022
@ngarbezza ngarbezza self-assigned this Jul 13, 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