mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-26 19:15:51 +03:00
[PR #92] [MERGED] Implement end-to-end testing. #93
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/initialcommit-com/git-sim/pull/92
Author: @ehmatthes
Created: 6/14/2023
Status: ✅ Merged
Merged: 6/16/2023
Merged by: @initialcommit-io
Base:
dev← Head:start_e2e_testing📝 Commits (3)
cc662b7Implements end-to-end test suite using pytest.0a95bf7Added brief documentation for testing.baf6e03Use git-dummy to generate sample repo.📊 Changes
11 files changed (+267 additions, -0 deletions)
View changed files
📝
.gitignore(+2 -0)➕
tests/README.md(+73 -0)➕
tests/e2e_tests/conftest.py(+31 -0)➕
tests/e2e_tests/reference_files/git-sim-log.png(+0 -0)➕
tests/e2e_tests/reference_files/git-sim-log_windows.png(+0 -0)➕
tests/e2e_tests/reference_files/git-sim-merge.png(+0 -0)➕
tests/e2e_tests/reference_files/git-sim-merge_windows.png(+0 -0)➕
tests/e2e_tests/reference_files/git-sim-status.png(+0 -0)➕
tests/e2e_tests/reference_files/git-sim-status_windows.png(+0 -0)➕
tests/e2e_tests/test_core_commands.py(+54 -0)➕
tests/e2e_tests/utils.py(+107 -0)📄 Description
As discussed in #55, implements a small set of end-to-end tests.
pip install pytestif you don't already have it available.run_git_reset(tmp_repo)in any of the test functions. This is helpful for seeing what test failures look like, and to make sure the image comparison function can actually fail appropriately.git-sim log. A helper function then inserts the global options needed to make the tests work.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.