What does "spec" mean in Javascript Testing

19,997

Spec is short for "Specification" as @DavinTryon suggested above.

Specification in terms of a test refer to the technical details of a given feature or application which must be fulfilled. The best way to think of this is as the technical specifications for a given unit of code to pass successfully. https://en.wikipedia.org/wiki/Unit_testing

Share:
19,997
basudz
Author by

basudz

Updated on June 06, 2022

Comments

  • basudz
    basudz about 2 years

    I'm fairly new to the Javascript world (coming from Android) so I've been reading up on how to setup Mocha/Jasmine to get my test environment in place. I've noticed a convention of "spec" in reference to test directories, file suffix, suite names, and/or tests/assertions.

    Is this specific to testing in Javascript? And what does "spec" actually stand for? Specification, Expectation, or ?