ShellSpec - shell script BDD unit testing framework
(shellspec.info)-
cross-platform shell script development और testing tool
-
dash, bash, ksh, zsh और सभी POSIX shell
-
code coverage, Mocking, parallel execution, parameter-based testing का समर्थन
-
ज़्यादातर features pure shell script और बहुत कम commands का उपयोग करते हैं, इसलिए embedded systems जैसे environments में भी इस्तेमाल किया जा सकता है
→ आवश्यक commands : cat, date, env, ls, mkdir, od (or hexdump), rm, sleep, sort, time
-
natural language जैसी test code के लिए अपना DSL
-
Mocking के दो तरीके: तेज़ और आसान function-style Mock, और command-based Mock जिसे external commands में भी इस्तेमाल किया जा सकता है
-
sandbox mode का समर्थन
-
functions को random तरीके से चलाने का समर्थन. Seed का उपयोग करने पर पहले वाला random order फिर से चलाया जा सकता है
-
debugging के लिए Execution Tracing, जो अनावश्यक output को हटाता है
-
Profiler से test speed को मापना और सुधारना
अभी कोई टिप्पणी नहीं है.