-
Notifications
You must be signed in to change notification settings - Fork 10
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
[TASK] Add "--minimal-test" CLI option #765
Conversation
I was testing this out both with
and ddev
In both cases all 3 versions got rendered:
|
This might be due to the fact, that the main guides.xml also defines the output formats and these probably overrule the command? Not sure |
You are probably right. I tested it without the 'config' directive. Need to inspect. |
OK, this is too complex, I sadly have to give up. The guides.xml is loaded by guides after our decorator, there are dozens of config loaders and processors involved and I could not find a possibility to hook into it with for example an event listener, where I also would be able to get the original CLI input arguments. We might need to first add this to |
@linawolf Jaap hinted me at the PostProjectNodeCreated event in which I can hook into. It's not very beautiful code because I natively parse argv here, because the event doesn't seem to offer access to the original InputInterface from Symfony nor the InputDefinition. Since we only access that single "--minimal-test" option I don't feel too bad about it. However, I'm unsure what the 'fail-on-log' config option would do. I only can access 'setFailOnError()' on the projects settings, to 'Fail-on-log' seems to be something else. Do we need it? If so, we would probably need to set that one in the RunDecorator, but if that option is then part of a 'guides.xml' we cannot override it. |
I am not really sure what fail on log did |
Then I would suggest to continue ignoring it for the time being. The important flags (fail on error, singlepage output format) should work with the updated patch. |
Did you test if we also fail on warning? |
I only tested if the option was set and implied it should work. Needs testing/verification, you are right. |
02a7e0a
to
53bb6d6
Compare
I just tested this and adjusted the make files to use the flag. How ever, once I use |
I build one warning into the docs so we can test this |
@linawolf Hm, the return status should be unaffected by this?! And "fail-on-log" is also unaffected. The only thing the patch at this point should do is adjust the output format, and enforce "fail-on-error" (NOT on warning). I think warnings already have a success return code. Only errors would have another return code. Is the thing you added an error or a warning? |
The thing I added is a warning. you can try this out by calling "make test-docs" locally. If you you remove "--minimal-test" from the command in the makefile the command fails due to the warning an the "fail on log". If you add "--minimal-test" it does not fail. |
Alright, found it, I think. '--fail-on-error' sets 'failOnError=error' Thus I changed the logic for the 'minimal-test' case to set failonError('warning'). |
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future.
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765
…n tests (#399) * [TASK] Use --minimal-test CLI option for documentation tests This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 * [TASK] Use --minimal-test CLI option for documentation tests This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 --------- Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 (cherry picked from commit 6ae38ac)
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 (cherry picked from commit 6ae38ac)
…n tests (#1180) [TASK] Use --minimal-test CLI option for documentation tests This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
…n tests (#1180) [TASK] Use --minimal-test CLI option for documentation tests This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 (cherry picked from commit 25e71c4)
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 (cherry picked from commit 25e71c4)
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 Co-authored-by: lina.wolf <[email protected]>
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5
…sts (#547) This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future. See also: TYPO3-Documentation/render-guides#765 Releases: main, 12.4, 11.5 (cherry picked from commit 6ae38ac26c4f03160060024e4cad0cf11ee6bee1)
This allows us to control specific settings needed for mininmal tests (like setting only a single output format) or more for the future.
Closes #764