0
0
Gitdevops~5 mins

Automated testing on push in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is automated testing on push in Git?
It means running tests automatically every time code is pushed to a repository to catch errors early.
Click to reveal answer
intermediate
Which Git feature helps trigger automated tests on push?
Git hooks, especially the pre-push or post-receive hooks, can trigger automated tests.
Click to reveal answer
beginner
What is a common tool used to run automated tests on push in cloud repositories like GitHub?
GitHub Actions is a popular tool that runs tests automatically when code is pushed.
Click to reveal answer
beginner
Why is automated testing on push important?
It helps find bugs early, keeps code quality high, and saves time by avoiding manual testing.
Click to reveal answer
intermediate
What file usually defines automated test steps in GitHub Actions?
The workflow YAML file inside the .github/workflows/ folder defines test steps.
Click to reveal answer
What triggers automated tests in GitHub when you push code?
AA GitHub Actions workflow configured to run on push
BManually running tests after push
COnly merging pull requests
DDeleting the repository
Which Git hook can be used locally to run tests before pushing code?
Apre-push
Bpost-commit
Cpre-merge
Dpost-push
Where do you place GitHub Actions workflow files to automate tests?
Asrc/
Btests/
C.github/workflows/
Ddocs/
What is the main benefit of automated testing on push?
AMake code run faster
BCatch bugs early and improve code quality
CAvoid writing tests
DDelete old code automatically
Which of these is NOT a typical step in an automated test workflow?
ARunning tests
BBuilding the code
CReporting test results
DDeploying to production without tests
Explain how automated testing on push works and why it is useful.
Think about what happens when you push code and how tests help.
You got /5 concepts.
    Describe how you would set up automated testing on push using GitHub Actions.
    Focus on the files and steps needed in GitHub.
    You got /5 concepts.