Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TESTS] E2E Test Package #14

Closed
agdimech opened this issue Mar 10, 2022 · 2 comments
Closed

[TESTS] E2E Test Package #14

agdimech opened this issue Mar 10, 2022 · 2 comments
Labels

Comments

@agdimech
Copy link
Contributor

A e2e package should be created which extends Typescript project. This package should depend on aws-prototyping-sdk and run a series of e2e tests by running npx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>. It should completely simulate how a user would do this, meaning we should spin up a local NPM registry ala Verdaccio, point our npm registry to the local verdaccio instance and upload the latest dist/js/*.tar.gz from aws-prototyping-sdk. From here it is a matter or validating that the project which gets synthesized contains the correct files, builds, generates the right synthed files (can be done via snapshotting).

In summary:

  1. Create a new e2e-tests package using TypescriptProject.
  2. Add a devDep on aws-prototyping-sdk@0.0.0
  3. Write a script to spin up a local verdaccio instance and update the local registry to point to it (.npmrc or some other mechanism).
  4. prepend the startup of the verdacio server to the build task
  5. Implement E2E tests as Jest tests by running npx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>

Things to test for:

  • All languages should build successfully with npx nx run-many --target=build --all
  • Synthesized outputs are correct (with and without supplied context)
@agdimech agdimech changed the title E2E Test Package [TESTS] E2E Test Package Mar 10, 2022
@github-actions
Copy link

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions bot added the stale label May 10, 2022
@agdimech
Copy link
Contributor Author

Fixed in: a2cc42c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant