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

Also have one recheck.ignore per state #182

Open
roesslerj opened this issue Mar 10, 2019 · 5 comments
Open

Also have one recheck.ignore per state #182

roesslerj opened this issue Mar 10, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@roesslerj
Copy link
Contributor

Since recheck.ignore is additive, we can also have one per state. This solves some immediate problems, e.g. where a XPath should only be ignored within a certain state.

@beatngu13 beatngu13 added the enhancement New feature or request label Mar 11, 2019
@martin-v
Copy link
Member

martin-v commented May 2, 2019

Where is the correct place to persist these ignore configurations?

@roesslerj
Copy link
Contributor Author

I'd say we look in hierarchy. One inside the folder of the Golden Master, next to the retest.xml. Then we could even have a second one above, as for the whole suite.

@beatngu13
Copy link
Contributor

beatngu13 commented May 2, 2019

To summarize:

${PROJECT_ROOT}
| - .retest/
|   | - recheck.ignore (level 1)
| - src/test/resources/retest/recheck/
    | - ${TEST_CLASS_NAME}
        | - recheck.ignore (level 2)
        | - ${TEST_CASE_NAME}.${STEP_NAME}.recheck
            | - recheck.ignore (level 3)
            | - retest.xml

As ignore/filter is additive, I assume we won't have conflicts and a more specific level will only add more things to ignore/filter?

@beatngu13
Copy link
Contributor

From retest/recheck#193:

This pull request pertains to the first half of #182 :

The RetestImpl now loads a second, optional, suite-specific filter in addition to the already loaded global one.

The new suite filter is loaded from the suite's golden master directory. It is loaded with the same mechanism as the global filter (e.g., also allows for a rules file). One difference is that a missing suite filter is not logged as an error (but as a debug message).

The remaining part of issue 182 is adding the step-wise filters (called level 3 in issue 182)

So I think we still have to figure out how CLI and GUI deal with "local" recheck.ignore files. How are they presented to the user? Where to write to when ignoring specific changes?

@roesslerj
Copy link
Contributor Author

I think as long as the changed are not "mixed" (i.e. that "local" ignores are persisted in the global ignore file) it is ok to have it like that. This is for experienced users and special use cases—we can later see how we put this into GUI and CLI. When ignoring changes, they should still end up in the "global" ignore file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants