Commit 4134bb55 authored by Mike Jang's avatar Mike Jang

Merge branch 'ali/add-testing-instructions-to-snowplow-guide' into 'master'

Add section on testing backend snowplow events

See merge request gitlab-org/gitlab!42746
parents d487b9e2 957cbffe
......@@ -297,6 +297,11 @@ class Projects::CreateService < BaseService
end
```
### Unit testing
Use the `expect_snowplow_event` helper when testing backend Snowplow events. See [testing best practices](
https://docs.gitlab.com/ee/development/testing_guide/best_practices.html#test-snowplow-events) for details.
### Performance
We use the [AsyncEmitter](https://github.com/snowplow/snowplow/wiki/Ruby-Tracker#52-the-asyncemitter-class) when tracking events, which allows for instrumentation calls to be run in a background thread. This is still an active area of development.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment