Giter Site home page Giter Site logo

Comments (5)

mpuittinen avatar mpuittinen commented on June 1, 2024

Good idea. Will definitely consider it for the next version. If you submit a PR for the change, that would help to get that incorporated faster.

from serverless-mocha-plugin.

mpuittinen avatar mpuittinen commented on June 1, 2024

@cdmcmahon Do you have other needs than the -g option (grep). It seems that the capabilities we can set when using Mocha programatically are limited (see options in https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically). We'd need to implement a defined set of variables to support, e.g.

    sls invoke test --grep <pattern>

from serverless-mocha-plugin.

mpuittinen avatar mpuittinen commented on June 1, 2024

@cdmcmahon Implemented --grep / -G. Included in version 1.4 of the plugin. Please let us know if other options are needed.

from serverless-mocha-plugin.

Leandros avatar Leandros commented on June 1, 2024

I'd like to have mocha's --require available. Is there any way this could be added? Looking at the programmatic options, it doesn't seem to appear.

from serverless-mocha-plugin.

kevde avatar kevde commented on June 1, 2024

is there also a way to include --opts. I was trying to create an mocha-init every time I create tests to preload my assertion tools like chai and prepare some data

from serverless-mocha-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.