Testing
“Utvecklare på Tradera pratar om testautomatisering på ert företag”
Content
Theory:
Practice:
Bonus:
Test-Driven Development
Behavior-Driven Development
Stack� When empty� should have no elements� should throw an exception when calling peek� should throw an exception when calling pop� When not empty� should not remove the top element when calling peek� should remove the top element when calling pop� should return the top element when calling peek� should return the top element when calling pop
Specification By Example
Empty stack� Given an empty stack� Then it has no elements� And it throws an exception when calling pop� And it throws an exception when calling peek�Non empty stack� Given a non empty stack� When calling peek� Then it returns the top element� But it does not remove the top element� When calling pop� Then it returns the top element� And it removes the top element
Requirements
Frameworks
Auto-Mocking
Should
Browser
My Projects
Tradera
Thanks!
Questions?