2.1.0 • Published 1 year ago

xant v2.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
1 year ago

You know when your Mocha test files become very large? First of all, it might mean the class you are testing is doing too much (Single Responsibility!).

But if you decide that's not the case, or there isn't very much you can do about it, Xant can help.

Xant is a small Node CLI application that will print out the structure of your Mocha test file.

Usage

Download/clone the repository and run npm install xant -g.

Run the application by running:

xant parse /path/to/my/testfile.js

This will print out the structure of your mocha test. For example:

MyClass
    When calling foo
        should return bar
        should do something
    When calling bar
        should return foo

Why the name?

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton

As I needed this for Mocha tests, I Googled around. Caffè Mocha is a beverage that includes chocolate. Everyone loves chocolate. Chocolate includes a molecule named Theobromine, which was formerly known as xantheose. Because theo is an existing package, I chose xant.

2.1.0

1 year ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago