Skip to content

nplutt/chalice-test-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chalice Testing Examples

This project contains examples for testing Chalice applications at both a unit and integration level. These examples are just the best way that I have found to test Chalice applications and are in no way endorsed by the Chalice project.

Quick Start

$ git clone https://github.com/nplutt/chalice-test-examples.git
$ cd chalice-test-examples
$ mkvirtualenv chalice-test-examples
$ pip install -Ur requirements.txt -Ur extra_requirements.txt

Unit Tests

This example has been kept very simple as I don't think this is something most people have issues with. The code can be found here.

Running Unit Tests

$ pytest test/unit

Integration Tests

The integration tests utilize Chalice's LocalGateway class, which is used to create the event for an application when running locally. This allows you to construct pretty simple tests that test the application from end to end. The code can be found here.

Running Integration Tests

$ pytest test/integration

About

My method for testing Chalice applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages