Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lawrencec/test-cat
A simple utility to sniff out files that include js tests and generates a `requirejs` file for use in karma configuration.
https://github.com/lawrencec/test-cat
Last synced: 29 days ago
JSON representation
A simple utility to sniff out files that include js tests and generates a `requirejs` file for use in karma configuration.
- Host: GitHub
- URL: https://github.com/lawrencec/test-cat
- Owner: lawrencec
- Created: 2016-11-27T19:29:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T01:16:49.000Z (over 4 years ago)
- Last Synced: 2024-04-25T20:46:08.667Z (9 months ago)
- Language: JavaScript
- Size: 70.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# test-cat [![Build Status](https://travis-ci.org/lawrencec/test-cat.svg?branch=master)](https://travis-ci.org/lawrencec/test-cat) [![Code Climate](https://img.shields.io/codeclimate/github/lawrencec/test-cat.svg)](https://codeclimate.com/github/lawrencec/test-cat) [![Test Coverage](https://img.shields.io/codeclimate/coverage/github/lawrencec/test-cat.svg)](https://codeclimate.com/github/lawrencec/test-cat/coverage) [![Latest Release](https://img.shields.io/github/release/lawrencec/test-cat.svg)](https://github.com/lawrencec/test-cat/releases)
A simple utility to sniff out files that include js tests and generates a `requirejs` file for use in karma configuration.
Test*Cat* because it hunts and leaves you a little surprise with what it finds.Given a directory tree like so:
```
test
- subdir
- nestedTest
- nestedTest.js
test.js
```It will generate a file in your chosen location that looks like this:
```
'use strict';
define
(
[
"test/subdir/nestedTest/nestedTest",
"test/test"
]
);
```## Install
```
npm install test-cat --save-dev
```## Usage
```
test-cat find --test-dir test --output ./specs.js --framework mocha --dry-run
``````
Usage: test-cat [options]Options:
--test-dir, -t Directory to search [required] [default: "test"]
--output, -o Output file [required]
--framework, -f Testing framework to search for [required] [default: "mocha"]
--root-dir, -k sub directory to use as root dir in output
--sort, -s Sort test files [default: true]
--randomize, -r Randomize test files [default: false]
--dry-run, -d Performs a dry run; does not output file [default: false]
--quiet, -q Does not output any text [default: false]
--help, -h Show help [boolean]
```