Skip to content

dinabandhuk/tdd-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test driven development in python

Test driven development in python.
Based on Obey the testing GOAT

testingGoat
Always obey the testing goat. He is watching

Error Encountered

 raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for firefox; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
  • Solution is to install geckodriver for Firefox .
  • I chose to cargo install geckodriver instead because it manages packaging and installation. Make sure your system has rust and cargo installed.

Concepts

  • Unit test --> from a programmer's perspective, verify correctness of internals

  • Functional test --> from a user's perspective, verify it delivers what is demandeds

  • Unit tests are about testing logic, flow control and configuration

  • Instead of testing constants and static objects we should test the implementation
    refactoringcat Don't be like the refactoring cat and skip steps and get into a mess

  • tdd cycle
    tdd red green cycle


double loop Tdd

Double loop Tdd when there are both unit and functional tests

TDD cannot be easily justified in a safe language like python so I chose to stop this project here. I might get back once the 2025 version of obey the testing goat is released. Continue from here

About

Test driven development in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published