npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mica

v0.2.2

Published

Testing framework CLI

Downloads

21

Readme

Mica CLI

A CLI to manage and run multiple boilerplate test frameworks. These frameworks can be run strait away and share global default steps that allows one to write in a pre-defined Gherkin syntax. A snippets library for Sublime Text 3 is available here here

This CLI is in proof of concept stage

Codeship Status for maxmckenzie/mica Code Climate Test Coverage Issue Count

Install

Dependencies

  • Node v6
  • NPM
  • Git
  • Selenium-standalone
  • PhantomJS
  • npm install -g mocha babel

To install the CLI

npm install mica -g

Getting Started

once installed navigate to your the application you want to test in a terminal window. run mica install see below for additional frameworks other than webdriver.io

once that has completed you will have a new directory called /test in the root of your application. run cd test to move to that folder and then create a features directory with mkdir features

make sure to only ever change the .features directory and not any others. If you need to add custom steps there will be an empty directory located here test/support/custom where you can add and custom steps you may need. if you need to change any files other than that then you should be opening a pull request with the original boilerplate framework. The details regarding the framework can be found in the .micarc file in the root of your application.

Structuring your .feature files

Name each file after the feature that it is testing. For example

/features
  /contact.feature
  /authenticate.feature
  /homepage.feature
  /billing.feature

that way we can separate out each individual feature and keep everything nice and tidy.

An example .feature file for this would be as follows

Feature: contact
  Background: As a user
    I want to message the help desk for this company from the contact page.
    Given I open the url "/contact"

  Scenario: I fill out the contact form
    When I set "email" to the inputfield "[email protected]"
    When I click on the button "send"
    Then I expect that element "sucess-notification" becomes visible 

Be sure to have selenium running by typing selenium-standalone start in another terminal window.

Then from the root of your app run the command mica run and if everything goes as planned then it will run your tests.

Commands

mica install

This installs a boilerplate framework and creates a test directory in the directory from which the command was run. the following boilerplates are available.

  • webdriverio

only one right now, but soon I shall build a guide on how to make your own and implement here.

mica environment-check

This runs a script to check that you have core local dependencies installed.

mica help

Shows you available commands

mica update

Updates the installed boilerplate from the external repo

mica run

Runs the currently installed test framework

mica run, update and install have to be run from the root of the application your testing

Mica Commands:

   install <framework>: creates framework in directory
     example: mica install webdriverio
   environment-check: check for essential local dependencies
   update: updates the framework

   // the following are not yet implemented check the road map here
   // https://github.com/maxmckenzie/mica/wiki/RoadMap
   destroy: deletes all files relating to the framework
   run: run the tests
   watch: watch for file changes in the directory and re-test
   cleanup: remove all output and log files from your codebase

Currently Implemented:

   mica install webdriverio
   mica environment-check
   mica help
   mica run

Coding Standards

https://github.com/airbnb/javascript

Docs and Dependacies

                                                                                                              
                                                                                                              
                                   `:; ,`..,;,;;;+ +                                                          
                              :::`::`.,,...:,:,:,,.;` +                                                       
                      .;:::::.,...:,:::,,,,,,,:,,....`;:'                                                     
                     ;::::::::,.,:;:;,,,;;;:'``,,:,,,,,:,.;                                                   
                   ':::::::;;::;;:,:;,,,,,.;``,;;;:;;::...;:                                                  
                  '::::,;;.,,,,:,,,,,,,,,::;;;:;::+:::;;...:.                                                 
                 '.,::;;,,,,::.;:.,:,,,,,;;::;;;;;+';:::;'`..'                                                
                ';,..:,,,,,,'''':::;,,;.,.;:;;;;;;;''+:';;'..,:,                                              
               ':,:,,..:,.+;;+'+,':;;,,;,,;;;;;;;;;''''':;;':`:.,                                             
               ;:,;.,,:.;;;'+;'';''+'+`;::';:+;;+'+'''''''+;;:,,.                                             
              ;:::,..:.+'+'';;;;+''''''+:;'+++'''''#'''''''+;;;;:.                                            
             ':;::',:,';'''+;;;+'+++'''+''#++++#'''+++++;''':;;;';                                            
             :;:::;;'';+''''+++'''++#;'#;'++++++'+++++++++:;+;:;;'                                            
            ;;;;:::,;;+'''''+'#''#++++'+#';+++++''+++####+#;'+::::                                            
            ';;:,:,';'''''''+#+++++++++++''++++;''#'';;;::+#;'+::;                                            
            ;;;,:::'+'''''#++++++++++++++;+:#++++'''';;;;',+#;+::;                                            
            ;;;::::''''''++++++++++++++++';,'+++'''';;;,.;';+:;;:'@:                                          
           +;;,,,#''+''#++++++++++++++++#;.,,;+++'';;.,,,:':#;;'''#@                                          
           ';;;';;:++'++++++++##++++++++#:,:,;#+'';;.,,,`:,''';+;;#;                                          
           +;;;;;'##+;+++++::;;;;:++++++':;,,,,'+++',,+'',,;';;';;':                                          
           ';;;;;++++++++#;;;';;';:+++++'::,,,,,,,;:;:''';,:;;::'':''                                         
           ;';;:+++++++++::';',:,;+'++++::;,,.:;,,.,,,+''::::;:;;,:.,'.                                       
           ';;;#++++++++#:+:,::::,;+++'',:;,';;,,,,,,,,,:;::;:::,;.,,.                                        
           #;;+++++++++++';:::,'+,;;+++#::;,,,,,,,,,,,,,::;'';;,,;.:,,'                                       
           @';;#++++++++:+;:::#++';;+++':'',,,,,,,,,,,';:,,;':,:'.,:,..';                                     
          ,+;';+++++++';+';:::+'+#;'++#,';;;,,,,:,,,,,,,;:,..::,,..:,:,@#                                     
           ;;;':+++++#'''';',:#+''''+'':';;:,,,,;,,,.;:,,;:,:,,,,.::::,;:                                     
          ';;;':#++##+'++';;;';'''+++',:;;;;;,,,:,,,,;:;.:;::::,:::::,:;                                      
          ;;;;';''+'+#':;'''+'''+++#';::;;;;;;,::;,;;''::;;:;;,,::,,::::;                                     
          ';;;;'''+''':;;;:+'+++'#.:::;;,:;;;;;::;:;''';'::;:::;,:.,,,,:;                                     
          #';;;;'+'+:;;;;;;;;;;;,,:+;.,,;:;'';:;;;';';''':::':::,,''';;';                                     
           ';;';''+;;;',,';;;;,,,+'+,,;:::+';;':;''''''';;:;::;:;,,,;;;;'`                                    
          .+,;;;;':',:::,;;,:::'''':,,::::'';+':''';;:;:::@,:;;:;;,;;;;;;                                     
          #':';;,,,,:::::::,,;;#++',,,,:;''';'',';'+,,,:::##;;'::;'.;;;;;'                                    
          ,'.:':,,,,,:::::,:+'++++;::'';;;;'';';;;,,:,::;:.+:+;'::'+;;;;:;   ;                                
           ;;';:;;''++###+'''+++++::';;;;;'++;'+::,''''':;,+,+;;::'';::;;::::.:                               
          . ';;;;''''++++'''+++++@::;;;;;;;'+#'':,;;;;#;':,'++;'';'';;:;;;:'';,.                              
           +';'''''''+++'''#+++#;::;;;;;;;;'++'':';';;++''`;;+;''''';':;;;;:;;':.                             
           #;';'+''''+++'''+++#;.::;;;;;;;;''++++'''';#++;.,.+';'++''';:;;:;;';, '                            
            ;;+++''+'++++'++++;.,::;';;;;;;;'+++++''''++++;:.+;+++++'';';;;::.';'                             
            ;';+++''+++++++++'',:,:;;;;;;;;;'++++++''++++++,;++++++++;';;:;;::.';+                            
             +;'++++++++'+++;',;',;;;;;;;'''''++++++++++++'+'++'+;+++++';;:;;;,.;;                            
            ` ''++++++++++;;';:'+:';;;;;;'''''++#++++++++'###++++;;+++++;;;;;;.,,;,                           
              #;;'+++++++;';';++,;;;;;;;;'''+++'##'''+++'#####+++''++##';;;;;;;.,;,                           
               ;;'+++++#;;;';;;:+#++++++''++++#############++++#+';'''##;::';;;'.;@                           
               '''#+++#;;;';;;;,'++#+#######################++++''';;;+';,,,';;;::#                           
                +''++#:;';;;;;;;'''+#####################++++;++'';;;;##:.,,,;;;:::@                          
                ''+++:;';;;;';;''''+'#+##################+++''##;'+''##+#:',,',;:;:,#                         
                ''++';'';;;'';;+'''++###########+++###+++++''''+''+#####@';:,,,',,.:,                         
               #''+#;;';;'';;;:+''++###+#######+##+++++++++'''++#+``@#',,;#,,,,,;.,.,                         
               @''#;;;;;';''''''''+#+#+#####++###+++++++##+'+#;'##,:,@:,::#,,,,,'`.,:                         
               ''':;;;;';'''''''+++#+#++++##+++++++++#+###+';;+'+';,:;:;;:',,,,,,,:.:                         
               ++:;;;''''''''''+++++##+++####++++####+#+'''+;'+'';;',.;;,:'',,,,,,,.@                         
              ,;;;;;;',,'''''''''++'##++++########@#@##';;+:;++++;;;:,;;::++,:,,,,:.#                         
              #;;;;'':,;'''''''''+++##+++++#+#@:;;;;;;#';;;;:#;;'';;',';::;'+.`++#,.@                         
              @;;;;;':';''''#..''''++##+#####;;;;;;;;;:+;;;:#:;;;':;;,';:::+#'''''';;                         
              ';;;';:,;;+'#+;:::######@@,::#;;;;;;;;;;;+;;;#++;;;':'+#''++:+''''''';.                         
              `;;;'':';;+#+@:::;@###@.::';;;;;;;;;;;;;;+;;'+++++++''''++''+'''''''';`                         
               ;;'';;;;;;'@:;;;;:,;'::::;;;;;;;;;;;;;''+;+#++++++++++++++++'''''''';                          
               ;;';'''';.:::;:;;;;;''::;;;;;:'';;;;:#''''+++'++++++++++++++'''''''@@                          
               '''::,';,,:::;;':;;;';':';;::,#+:+++'#;'''++''++++++++++++++''''+#                             
               #;':,';':;:::;++;;;;';;::::,+++#+'++'+''++#'''+++++++++++++#'+@                                
               ,;,:,'',,::::;+++;;;''::::+''''#'++''+++++''''++++++++++++@                                    
                :::'',::::::;+++:;;;;;,+''''++##'##+#++++''''++++++++++@                                      
                :::';::;:::::''+:;;;;'''''++++'+#+###++++''''++++++++@                                        
                ';':::::::;'''+'';;:+''++++++'++++++++++'+'''++++++@                                          
                ;'':';'';''''+++#;;+'+++++##++##++++++++'++++++++#                                            
                ;',';;;''++++++##+'''#+#++++++++++++++##++'+'++++                                             
                ;''';;'''++'++++#''++#++++++++++++++++++++'+++@                                               
                :''''''++++++++#+'++++++++++++++++++++++#+++@                                                 
                +'';''''+++++++#+++++++#++++++++++++++#+#+@                                                   
                 '';'+++++++++++#+++++#+++++++++++++++++#`                                                    
                 +'''+++++++++#+++++++'+++++++++++++++#:                                                      
                  '''++++++++#+++#+++#+++++++++++##+#'                                                        
                   #''+++++++#+++#++++#+++++++++####                                                          
                     @+##+#++#++++++++##+++++##+##                                                            
                       '##+#++#+#++++++#+#+'++@'                                                              
                         ;@+##+#++++++++++++@.                                                                
                            @++#++++++++##@                                                                   
                              @#+++++++#@                                                                     
                                ;@#++@;                                                                       
                                                                                                              
                                                                                                              
                                                                                                               ```