Needlessly Postulating Minds

    declarative-test-structure-generator
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    declarative-test-structure-generator

    Build Status Coverage Status NPM version

    declarative-test-structure-generator allows writing tests in an object definition style.

    {
      'Object syntax': {
        tests: {
          'sample test 1': {
            test: () => {
              expect(1 + 2).toEqual(3);
            }
          },
          'skipped test': {
            skip: true,
            test: () => {
              expect(5 + 8).toEqual(13);
            }
          }
        }
      }
    }

    As of version 1, the API has been refactored to be standalone, it no longer packs any specific test framework. The API needs to be mapped using pre-built or custom mappers (see documentation).

    Installation

    npm install -D declarative-test-structure-generator
     
    # or 
    yarn add -D declarative-test-structure-generator

    TypeScript

    As of version 1, the library package has been re-written in typescript and provides the type definitions.

    Documentation

    The documentation is available on the project's page

    Issues

    Please share your feedback and report the encountered issues on the project's issues page.

    Install

    npm i declarative-test-structure-generator

    DownloadsWeekly Downloads

    61

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    24.3 kB

    Total Files

    54

    Last publish

    Collaborators

    • marc-ed-raffalli