Skip to content

Commit

Permalink
chore(cli-integ): explain how to stage in CodeArtifact (#27182)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr authored and Hogan Bobertz committed Sep 19, 2023
1 parent f2c2efc commit 37d89e0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,28 @@ To run a specific test, add `-t` and a substring of the test name. For example:
bin/run-suite -a cli-integ-tests -t 'load old assemblies'
```

### Running a test suite against binaries

Some test suites require package binaries stages in CodeArtifact repositories to run. This requires you to do a full build, then create a CodeArtifact repository in your own account, uploading the packages there, and then running the tests in a shell configured to have NPM, Pip, Maven etc look for those packages in CodeArtifact.

```shell
# Build and pack all of CDK (will take ~an hour)
$ ./build.sh
$ ./pack.sh

# Use publib to upload to CodeArtifact
$ npm install -g publib-ca
$ publib-ca create
$ publib-ca publish /path/to/dist

# Run the tests against those repositories (may need to substitute 0.0.0 w/ local number)
$ source ~/.publib-ca/usage/activate.bash
$ bin/run-suite --use-cli-release=0.0.0 <SUITE_NAME>

# Clean up
$ publib-ca delete
```

## Tools

There are a number of tools in the `bin/` directory. They are:
Expand Down

0 comments on commit 37d89e0

Please sign in to comment.