Skip to content

tremendous dependency size #333

@mechanoid

Description

@mechanoid

After recommended tap over tape to a colleague, he pointed out the big difference in file size due to dependencies.

As a comparison node-tape with dependencies installed weighs in at about 2.4MB disk usage (which i consider too much for a minimal test framework), but looking at node-tap we end in 54MB disk usage.

After digging deeper it looks like the main disk space is used for 2 things

1.) polyfilling (bluebird) with about 700kb
2.) code-coverage
** coveralls with about 6MB
** and nyc around the 45MB i guess

For 1.) i consider it a bad practice to include polyfils by default so in my opinion it should be a peerDependency, which people may drag in if it is necessary.

For 2.) i personally think that the mix of a testing utility and line-coverage is merely useless, especially when it is just a nice wrapper of starting the test util with another Cli-Interface.
So in my opinion it would be nice to make those dependencies also linkable via peerDependencies,
so that they can be implemented if given and still remove their mandatory nature.

Overall i think tap is the much better test framework, but i can understand people moving back to tape (or other solutions) because of that.

Thanks in advance, Falk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions