Giter Club home page Giter Club logo

serverless-appsync-simulator-coverage-example's Introduction

serverless-appsync-simulator-coverage-example

Example how to use serverless-appsync-simulator-coverage-example

Coverage folder

In this repo we add the coverage folder so you can have an Idea what is generate with the command npm run test:


> [email protected] test /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example
> npm run ci && npm run coverage:report


> [email protected] ci /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example
> start-server-and-test offline 20002 test:just-api

1: starting server using command "npm run offline"
and when url "[ 'http://localhost:20002' ]" is responding with HTTP status code 200
running tests using command "npm run test:just-api"


> [email protected] offline /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example
> sls offline start

AppSync Simulator: AppSync endpoint: http://192.168.1.26:20002/graphql
AppSync Simulator: GraphiQl: http://192.168.1.26:20002
Serverless: Prepare injects
offline: Starting Offline: dev/us-west-2.
offline: Offline [http for lambda] listening on http://localhost:3002
offline: Function names exposed for local invocation by aws-sdk:

> [email protected] test:just-api /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example
> just-api specs --recursive --parallel 8

Found suites:
  - /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example/specs/Query.getArgumentsValues.yml

Launcher will run suites: /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example/specs/Query.getArgumentsValues.yml

   โœ“ Get Patient (47ms)

  Done: /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example/specs/Query.getArgumentsValues.yml (Passed)

0 skipped, 0 failed, 1 passed (1 tests)
0 skipped, 0 failed, 1 passed (1 suites)
Duration: 73ms


offline: Got SIGINT signal. Offline Halting...
AppSync Simulator: Halting AppSync Simulator
Serverless: Collecting coverage
offline: Halting offline server

> [email protected] coverage:report /Users/fernandochucre/code/chucre/serverless-appsync-simulator-coverage-example
> istanbul report text html cobertura

----------------------------------------|----------|----------|----------|----------|----------------|
File                                    |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------------------------------------|----------|----------|----------|----------|----------------|
 __root__/                              |    22.58 |       50 |      100 |    36.84 |                |
  Query.getArgumentsValues.request.vtl  |    22.73 |       50 |      100 |    35.71 |... 7,8,9,14,15 |
  Query.getArgumentsValues.response.vtl |    22.22 |       50 |      100 |       40 |          2,3,5 |
----------------------------------------|----------|----------|----------|----------|----------------|
All files                               |    22.58 |       50 |      100 |    36.84 |                |
----------------------------------------|----------|----------|----------|----------|----------------|

Done

serverless-appsync-simulator-coverage-example's People

Contributors

chucre avatar

Watchers

 avatar

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.