You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Which problem is this PR solving?
- ensure apps build properly on every commit
## Short description of the changes
- add mini smoke test to CI that just ensures the app can build and run
without error
## How to verify that this has the expected result
run these locally and it should build fine, change the
auto-instrumentations-web version to 0.35 and see it error. Actually we
should see this fail in dependabots too until the fix comes out for
auto-instrumentations.
Note this is a temporary stopgap to catch errors before we finish
implementing #17
## Which problem is this PR solving?
- Closes#17
## Short description of the changes
- Add smoke tests using BATS, similar to our other distros. This
primarily allows for re-using smoke test logic independent of language,
as it inspects and asserts against telemetry collected by the Collector
and exported to a file.
- Update CircleCI config to run smoke tests in every push, similar to
lint/build/test
- Add Makefile for easier smoke testing. This doesn't appear to be
necessary for local smoke testing, as similar scripts in the
`package.json` also work locally. CI didn't seem to work as well, hence
the decision to keep the Makefile.
- Update `DEVELOPING.md` with some details around smoke tests
- Update example to send to collector at localhost, without API key.
This may be the most "controversial" and may warrant having a different
example app - open to ideas. If we keep an API key we have end up with
CORS errors for a "With-Credentials" header.
## How to verify that this has the expected result
See the [results in
Circle](https://app.circleci.com/pipelines/github/honeycombio/honeycomb-opentelemetry-web/113/workflows/546edcba-4d22-4dd9-8fc3-114170373f0f/jobs/435/artifacts),
including actual assertions like `Agent includes browser attributes` as
well as telemetry output stored from the collector file export.
Connect cypress tests to CI
The text was updated successfully, but these errors were encountered: