Shift left
Problem statement
In a software development team, often tests/QA happens at the end of the development life cycle. Bugs are raised, and teams have to spend time triage the bug, priorities them, and assign the bugs for developers to fix. This often impacts the deliverables of customer value. In worse case scenario, company could end up having reputational and financial damages.
For instance, after developer finishes a feature, a bug is raised by QA engineer, and our experience often ends bad, sometimes developers arguing about the bug, sometimes the edge cases were missing. Then we have to organise a call with wider team, more stakeholders to triage.
Another problem we faced in our project was that the QA raised a bug and developers confirmed this is not a functional bug, but it is environment and data related issue.
Imagine the both examples above raised against release candidate build, what do you think is gonna happen between QA, developers, stakeholders, release managers etc.?
What is shift left?
We strongly believe shifting left could resolve the real pains like we had during our software development journey.
In QA term, it is seen as moving testing to the early days of SDLC. This could even shift more left by having QA done during HLD, LLD.
For software developers, it means planning the test cases before writing any production code.
How does Shift Left improve collaboration between teams?
✅ Developers + QA work together early
Shift Left improves collaboration between teams by bringing key stakeholders — developers, testers, security, and even product — into the process earlier. This leads to shared ownership, faster feedback loops, and fewer surprises late in development.
Instead of testers waiting for a “finished” product, QA and developers define test cases together — sometimes before code is even written (e.g., using TDD or BDD).
🔄 Benefit
- QA understands the feature context better
- Devs think more clearly about edge cases
- Reduces back-and-forth bug cycles
✅ Shared responsibility for quality
By introducing automated tests, linting, static analysis, and CI checks early in development, quality isn’t just QA’s job — it becomes everyone’s.
🔄 Benefit
- Bugs are found sooner, not just by QA
- Encourages cleaner, more maintainable code
- Encourages collaboration, CI/CD, automation, and faster releases.
✅ Security is involved earlier
In traditional workflows, security audits happen late. Shift Left brings DevSecOps practices forward — such as running security scans in CI, or reviewing architecture up front.
🔄 Benefit
- Prevents critical vulnerabilities from reaching production
- Saves time by baking in security from day one
✅ Product/UX gets faster validation
When teams collaborate on test cases or automation scripts early, features can be demoed and validated sooner, even as part of CI/CD.
🔄 Benefit
- Product sees working prototypes earlier
- Reduces scope creep or misaligned expectations
✅ Fewer silos, better communication
- Shift Left requires cross-functional discussions about:
- How features will be tested
- Defects found early are cheaper and easier to fix.
- How errors will be handled
- What is “done” and “acceptable”
🔄 Benefit
- Teams are aligned
- Less finger-pointing
- Everyone works toward the same quality goals
✅ Improve software quality and customer satisfaction
- Continuous testing and feedback improve reliability.
- Real-World Scenario
🧪 In a team using Shift Left
- Developers write unit/UI tests as they code
- QA defines acceptance criteria during sprint planning
- CI runs automation, tests, and other quality controls on every PR
- PMs get demo builds early via CI/CD pipelines
🧪 Automated Testing at Commit Time
In our iOS team, we use pre-commit Git hooks to run SwiftLint, SwiftFormat, and unit tests before code is committed.
Get Ke’s stories in your inbox
Join Medium for free to get updates from this writer.
💡 Why It’s Shift Left:
- Developers get instant feedback before even pushing code.
- Prevents style issues and obvious bugs from reaching CI.
✅ Real Impact
- Saves CI resources.
- Keeps the main branch clean.
- Reduces PR comments like “fix spacing” or “add test.”
🔐 Security Scanning in CI
On our CI, we have integrated tools like Snyk to check the vulnerability of our dependencies, SonarQube for static analysis of our code bases to run during every pull request.
💡 Why It’s Shift Left
Exposes known vulnerabilities before merging, not in staging or prod.
✅ Real Impact
- Avoids security issues being discovered after release.
- Helps developers learn secure coding patterns early.
❌ Challenges we faced when shifting left
Shift left could cause tooling, training investments, overload security roles and teams would end up having tools overlapping. It is a bit challenging to shift from waterfall to Agile (Shift left).
🧱 Cultural Resistance
“That’s QA’s job.”
“We’ve always done it this way.”
⚠️ Challenge:
- Developers may resist writing tests or learning new tools.
- QA may feel their role is being replaced.
💡 Solution:
- Emphasise shared responsibility for quality.
- Provide training and highlight the long-term speed gains.
- Celebrate early wins with examples (e.g., “We caught this bug before it went live!”).
🛠 Tooling Complexity
Teams struggle to set up CI, linting, static analysis, or pre-commit hooks correctly.
⚠️ Challenge:
- Time spent figuring out tools like SwiftLint, SonarQube, or CI pipelines.
- Tool overload if every team adds their own.
💡 Solution:
- Start small: e.g., just SwiftFormat in pre-commit hooks.
- Document and share a common setup (.swiftlint.yml, CI templates).
- Use GitHub Actions or Xcode Cloud for consistent CI environments.
Solutions/Suggestions
From our experience, senior stakeholders can help with the cultural resistance, and up skilling the engineers with shifting left mind sight which enables them to embrace the agile way of working.
Conclusion
Considering pros and cons of shifting left, it looks counter intuitive and it requires upskills and communications with wider team. However, it becomes valuable assets to the company in the long term. It safes guide the quality and security of software products with a happier and more productive teams and leads to more customers satisfactions.





