@jagoncalves14/pixelmatters-zsh-unit-testing

1.0.1 • Public • Published

pixelmatters-zsh-unit-testing

CLI that adds useful custom ZSH functions for your unit testing

It adds functions to only run unit tests on files that are different between two branches or on changed files that haven't yet been commited;

pixelmatters-zsh-unit-testing is released under the MIT license. Current npm package version. PRs welcome! Follow @pixelmatters_

🚀 Get Up and Running

You can install this package using either npm or yarn.

Yarn

If using Yarn:

  1. Install the package globally
yarn global add @jagoncalves14/pixelmatters-zsh-unit-testing

NPM

If using NPM:

  1. Install the package as a development dependency::
npm install -g @jagoncalves14/pixelmatters-zsh-unit-testing

At this point you should be good to go 👍

🤝 Usage

  1. After installing, run the package's CLI command and answer to the questions in the prompt:
pixelmatters-zsh-unit-testing
  1. Now you're all set and done!

After the CLI command is complete, the following functions are added to you .zshrc config:

  • testchanges
  • testbranch

Examples

testchanges

  • Run unit tests on changed files:
testchanges
  • Run unit tests on changed files and update its snapshots:
testchanges -u

testbranch

  • Run unit tests on different files between current and target branch:
testbranch
  • Run unit tests on different files between current and target branch and update its snapshots:
testbranch -u
  • Run unit tests on different files between current and custom target branch:
testbranch fix/some-branch-name
  • Run unit tests on different files between current and custom target branch:
testbranch -u fix/some-branch-name

🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or spread the word, thank you! 💪 🧡

Check out our Contributing Guide for ideas on contributing and setup steps.

📝 License

Licensed under the MIT License.

Package Sidebar

Install

npm i @jagoncalves14/pixelmatters-zsh-unit-testing

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

16.4 kB

Total Files

13

Last publish

Collaborators

  • jagoncalves14