Sha256: ef090c7e5d1224b43c8532bc71914aa564c5787fa7f6fee17dcb8f662c356445

Contents?: true

Size: 1.01 KB

Versions: 14

Compression:

Stored size: 1.01 KB

Contents

# Testing

## Unit

To run unit tests:

    bundle exec rspec

## Integration

### Locally

To run the integration tests locally, you need to create a new Jets CRUD project and start the server:

    jets new demo
    cd demo
    jets generate scaffold Post title:string
    jets server

Then you can run the postman tests:

    spec/integration/local.sh

The integration_local.sh script ensures that the necessary data exists for the postman integration test to pass.  It ultimately calls:

    newman run spec/integration/fixtures/postman/collection.json -e spec/integration/fixtures/postman/environment.json

The integration test results should look something like this:

* [Jets Integration Test Results](https://gist.github.com/tongueroo/fcea2b2f48342d1448d3f258fcd6536c)

### Remotely

Then you can deploy the jets app and test it on real AWS Lambda.

    cp ~/environment/.env.development.remote . # assumes you have a .env.development.remote
    jets deploy

Run the remote integration script:

    spec/integration/remote.sh

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jets-1.0.5 README/testing.md
jets-1.0.4 README/testing.md
jets-1.0.3 README/testing.md
jets-1.0.2 README/testing.md
jets-1.0.1 README/testing.md
jets-1.0.0 README/testing.md
jets-0.10.4 README/testing.md
jets-0.10.3 README/testing.md
jets-0.10.2 README/testing.md
jets-0.10.1 README/testing.md
jets-0.10.0 README/testing.md
jets-0.9.2 README/testing.md
jets-0.9.1 README/testing.md
jets-0.9.0 README/testing.md