-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feature]: Support "real" TCR that also reverts tests #674
Labels
Comments
A note about running TCR manually (and not systematically on save): this part is already available through running |
philou
added a commit
that referenced
this issue
Aug 13, 2024
- add a test for SessionInfo - add a TCR.SetFlavor(...) method to interface
philou
added a commit
that referenced
this issue
Aug 13, 2024
- pass Flavor param to TCREngine - print the Flavor in Terminal.ShowSessionInfo - add "nice" flavor by default in fakes and test doubles
philou
added a commit
that referenced
this issue
Aug 13, 2024
- pass the Flavor through HTTP - update the html to display the flavor - adapt structs and tests
philou
added a commit
that referenced
this issue
Aug 13, 2024
mengdaming
added a commit
that referenced
this issue
Aug 13, 2024
aatwi
added a commit
that referenced
this issue
Aug 13, 2024
aatwi
added a commit
that referenced
this issue
Aug 14, 2024
- Rename nice to relaxed - Rename original to btcr
aatwi
added a commit
that referenced
this issue
Aug 14, 2024
- Implement a new Variant enum - Replace the usage of relaxed and btcr by the enum values
aatwi
added a commit
that referenced
this issue
Aug 14, 2024
- Implement the function Name that returns the value of the Variant as a string - Use the function in the code
44 tasks
aatwi
added a commit
that referenced
this issue
Sep 11, 2024
- Check whether a file contains a 'test' to know if it is a test file - Added tests for different revert configuration of the relaxed TCR
aatwi
added a commit
that referenced
this issue
Sep 11, 2024
- Replace tests by parameterized tests - Added new test that covers not reverting test files
mengdaming
added a commit
that referenced
this issue
Sep 11, 2024
- Add tests - Inline revertSrc() file into revert() - Extract shouldRevertFile() - Extract noFilesRevertedMessage()
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Sep 13, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
github-project-automation
bot
moved this from In progress
to Done
in TCR Enhancements & Bugs Follow Up
Oct 1, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- create variant-introspective.mmd - update other diagrams to add "VCS" on VCS-related actions - generate png files
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
To document what this new variant does - add a section - add a description of the variant - also add an extract from T Deniffel's post to explain what the other variants are
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
So that users can input variant=introspective - add introspective to variant enum - make sure web app understand the introspective variant
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- add test placeholder for param variant value checking - add test placeholder for introspective variant execution by engine
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- change param.variant type to string to be consistant with other params handling - remove config/param_variant_test.go - add variant.Select(string) to manage variant instance selection - add UnsupportedVariantError (returned when variant name is not recognized) - ensure TCR engine exits on error when variant is not recognized
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- add a list of received commands in VCS fake so that we can test that we got "commit && revert" - add vcsfake.GetLastCommands(n) to get the tail of the list of last commands - add vcsfake.VerifyLastCommandsAre() as an alternative approach
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- remove vcsfake.VerifyLastCommandsAre() alternative approach
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
To have clearer names for all VCS - rename interface function - adapt fake
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
To have clearer names for all VCS - rename interface function - adapt fake
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
To clean up code now that we don't support commit failures
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- add tcr.introspectiveRevert() - inject call to introspectiveRevert() in tcr.revert() - tune and pass test case on revert for introspective variant
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
- Clean the tcr.revert function - Added an array in vcs fake to track the commit subjects - Add tests to verify the output of messages
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
Because we don't need it anymore without the 'commit failure' option - remove parameter from interface - adapt implementations - simplify tests - adapt calls
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
- refactor simple and introspective Reverts to simplify error handling - add a test to make sure we deal with VCS errors in introspectiveRevert
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
So that we can use our own commit message when reverting - add option "--no-commit" to git revert command - tune git package tests accordingly
mengdaming
pushed a commit
that referenced
this issue
Oct 1, 2024
- Implement the function variant.checkVariant - Rename checkWorkflowConfiguration to checkVariantConfiguration - Add tests to verify the function variant.checkVariant - Allowed variant names to be case-insensitive
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- renamed test cases from restore to revert_local - renamed git test case from revert to rollback_last_commit - added p4 rollback_last_commit test case (wip)
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
- removes --commit-failures flag - updates --variant flag description
mengdaming
added a commit
that referenced
this issue
Oct 1, 2024
philou
added a commit
that referenced
this issue
Oct 8, 2024
To experiment tracking technical debt in the code. - add FIXME comments for 2 smells we stumbled on when coding #674
mengdaming
pushed a commit
that referenced
this issue
Oct 11, 2024
To experiment tracking technical debt in the code. - add FIXME comments for 2 smells we stumbled on when coding #674
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Contact Details
[email protected]
Feature Request
The TCR tool only reverts the code files, and keeps the failing test. The original TCR was also reverting the tests. These 2 behaviors lead to quite different workflow. The original TCR encourages:
Feature Description
This could be an option to TCR (ex: --also-revert-tests). It could also become the default behavior, and make the current behavior available with an option (ex: --nice)
Alternatives
An alternative is to completely drop the current behavior, and stick only to the Real TCR.
Additional Context
I needed this feature on the Baby Steps Golf Kata (https://github.com/philou/kata-babystepsgolf). I ended up reverting to straightforward TCR scripts. I also needed to run the TCR manually (and not systematically on save, as I wanted participants to give a special commit message).
Code of Conduct
TODO
Parking
The text was updated successfully, but these errors were encountered: