1161 links
  • linx
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Play Videos
Links per page: 20 50 100
page 1 / 1
  • tdd - Bash and Test-Driven Development - Stack Overflow

    27
    down vote
    favorite
    8

    When writing more than a trivial script in bash, I often wonder how to make the code testable.

    It is typically hard to write tests for bash code, due to the fact that it is low on functions that take a value and return a value, and high on functions that check and set some aspect in the environment, modify the file-system, invoke a program, etc. - functions that depend on the environment or have side effects. Thus the setup and test code become much more complicated than the code they test.

    March 18, 2016 at 12:53:44 PM UTC - permalink -
    QRCode
    - https://stackoverflow.com/questions/1315624/bash-and-test-driven-development/1315627#answer-1415161
    bash tdd
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation