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

feat(core): add filter disabling thought config #937

Merged
merged 8 commits into from
Jun 28, 2024

Conversation

Vacxe
Copy link
Member

@Vacxe Vacxe commented May 22, 2024

No description provided.

@Vacxe Vacxe force-pushed the add-filter-disabling branch 2 times, most recently from 131de5b to 5a30724 Compare May 22, 2024 09:52
@Vacxe
Copy link
Member Author

Vacxe commented May 22, 2024

POC: Don't like ToggleTestFilter naming

@@ -20,7 +28,7 @@ class AllureTestFilter(val cnf: TestFilterConfiguration.AllureFilterConfiguratio
}
}

override fun filter(tests: List<Test>): List<Test> {
override fun filterPredicate(tests: List<Test>): List<Test> {
Copy link
Member

Choose a reason for hiding this comment

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

Predicate returns bool, this function is not a predicate

import com.malinskiy.marathon.execution.TestFilter
import com.malinskiy.marathon.test.Test

interface ToggleTestFilter : TestFilter {
Copy link
Member

Choose a reason for hiding this comment

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

Just change the TestFilter to a base class and add this logic there

@Vacxe Vacxe marked this pull request as ready for review May 29, 2024 23:39
@Vacxe Vacxe requested a review from tagantroy as a code owner May 29, 2024 23:39
@Malinskiy Malinskiy merged commit 9005ece into MarathonLabs:develop Jun 28, 2024
4 checks passed
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.

None yet

2 participants