Skip to content

Add integration tests using sls package - #6136

Merged
dschep merged 22 commits into
masterfrom
sls-5938
May 28, 2019
Merged

dschep merged 22 commits into
masterfrom
sls-5938

Conversation

@dschep

@dschep dschep commented May 14, 2019

Copy link
Copy Markdown
Contributor

What did you implement:

Closes #5938 by adding integration tests that run sls package.

It currently only covers very basic test cases. What cases should this test?

I currently use sls create but want to switch to configs provided by the test for easier to read & more reliable tdsts

How did you implement it:

Ported the idea from https://github.com/UnitedIncome/serverless-python-requirements/blob/master/test.js but switched from tape to jest

How can we verify it:

clone the branch and run npm run local-integration-test

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: NO
Is it a breaking change?: NO

@medikoo medikoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dschep looks very promising to me, we're on a right path

Comment thread package.json Resolved
Comment thread tests/local-suite/packaging.tests.js Resolved
Comment thread .travis.yml Resolved

@pmuens pmuens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far. Had pretty much the same questions @medikoo has.

Comment thread tests/local-suite/packaging.tests.js Resolved
Comment thread tests/local-suite/packaging.tests.js Resolved
Comment thread .travis.yml Resolved
@pmuens pmuens changed the title add integration tests using sls package Add integration tests using sls package May 21, 2019

@pmuens pmuens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks really good. Thanks for addressing the PR comments.

Just added another comment regarding the describe blocks. Don't want to be too picky here, so feel free to ignore it if you disagree 👍

Other than that we're almost good here.

AFAIK just the other test case we've discussed yesterday are missing. After that it should be GTM :shipit:

@dschep
dschep marked this pull request as ready for review May 24, 2019 13:06
@dschep
dschep requested review from medikoo and pmuens and removed request for medikoo May 24, 2019 18:21

@medikoo medikoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, I think we may take this in for start.

Is it still in progress (badges indicates that)?

@pmuens pmuens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@dschep let us know if this is GTM and we can merge it right away.

@dschep
dschep merged commit f8e81f3 into master May 28, 2019
@dschep
dschep deleted the sls-5938 branch May 28, 2019 16:39
@medikoo medikoo removed this from the 1.45.0 milestone Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packaging - Create sophisticated integration test suite

3 participants