Relative Content

Tag Archive for pythonaws-lambdapytest

Configuring Pytest to Find Tests Across Multiple Project Directories

I’m looking to unit test all my AWS Lambda code in my project using pytest. Due to how I have to configure the directory structure to work with infrastructure as code tooling, each Lambda sits within it’s own CloudFormation stack, I’ve got a pretty non-standard directory structure. I’m unable to get pytest to run all tests across all my Lambda functions – ideally I’d like this to work by just running ‘pytest’ in the root directory of the project.