Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Every generated project comes with:

- **Page Object Model** — Base page and component classes with example pages
- **Test examples** — Working login tests against the [Raider Test Store](https://raider-test-site.onrender.com/)
- **Raider reporting** — RSpec and Cucumber projects include [raider_reporter](https://github.com/RaiderHQ/raider_reporter), which writes results to `raider-results/` and uploads runs when `RAIDER_TOKEN` and `RAIDER_ENDPOINT` are set; generated CI runs the suite through `raider-reporter exec` with `RAIDER_QUARANTINE`, so quarantined tests do not fail the build; an opt-in `raider-gate` job (`RAIDER_GATE=1`) fails CI when the Raider quality gate fails
- **Raider reporting** — RSpec and Cucumber projects include [raider_reporter](https://github.com/RaiderHQ/raider_reporter), which writes results to `raider-results/` and uploads runs to your Raider Hideout server when `RAIDER_TOKEN` and `RAIDER_ENDPOINT` are set; generated CI runs the suite through `raider-reporter exec` with `RAIDER_QUARANTINE`, so quarantined tests do not fail the build; an opt-in `raider-gate` job (`RAIDER_GATE=1`) fails CI when the Raider quality gate fails
- **Failure video replay** — Every test is recorded and the video is kept only for failing tests, attached to the report as `video` (WebM from page screenshots for Selenium and Watir, Appium's own MP4 for mobile, which needs `ffmpeg` on the Appium server host for iOS and for Android recordings over 180 s). Turn it off per run with `VIDEO=off`, or per project with `raider u video off`; ffmpeg is downloaded once, SHA-256 checked and cached in `~/.cache/raider`. The RaiderHQ `ffmpeg-7.1` build that the download uses is not published yet, so for now set `RAIDER_FFMPEG_PATH` to an ffmpeg with libvpx to get web videos
- **GitHub Actions CI** — Ready-to-use test pipeline that caches ffmpeg for failure videos
- **Rake tasks** — Default, smoke, and regression tasks with tag-based filtering
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/infrastructure/templates/azure_pipelines.tt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
HEADLESS: 'true'
# Where ffmpeg for failure videos is cached between runs.
RAIDER_CACHE_DIR: $(Pipeline.Workspace)/.cache/raider
# Add RAIDER_TOKEN (secret) and RAIDER_ENDPOINT as pipeline variables.
# Add RAIDER_TOKEN (secret) and RAIDER_ENDPOINT (your Raider Hideout URL) as pipeline variables.

jobs:
- job: tests
Expand Down
1 change: 1 addition & 0 deletions lib/generators/infrastructure/templates/github.tt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: Run tests
run: <%- if framework == 'cucumber' -%>bundle exec raider-reporter exec -- bundle exec cucumber features --format pretty<%- else -%>bundle exec raider-reporter exec -- bundle exec rspec spec --format documentation<%- end %>
# RAIDER_ENDPOINT: your Raider Hideout URL (repository variable); RAIDER_TOKEN: a project token (secret).
env:
HEADLESS: true
RAIDER_TOKEN: ${{ secrets.RAIDER_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions lib/generators/infrastructure/templates/github_appium.tt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
<%- else -%>
run: bundle exec raider-reporter exec -- bundle exec rspec spec/ --format documentation
<%- end -%>
# RAIDER_ENDPOINT: your Raider Hideout URL (repository variable); RAIDER_TOKEN: a project token (secret).
env:
APP_PATH: ${{ github.workspace }}/apps/RaiderTestApp.app
RAIDER_TOKEN: ${{ secrets.RAIDER_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions lib/generators/templates/common/read_me.tt
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ Every run writes machine-readable results to `raider-results/` (including `run.j
`features/support/env.rb` requires `raider_reporter/cucumber`, so no extra Cucumber formatter flag is needed.
<%- end -%>

To upload runs to Raider, set these environment variables before running the suite:
To upload runs to Raider, set these environment variables before running the suite.
`RAIDER_TOKEN` and `RAIDER_ENDPOINT` come from your Raider Hideout server (its setup page, or `bin/rails hideout:setup` /
`hideout:token`):

```bash
export RAIDER_TOKEN=your-token
export RAIDER_ENDPOINT=https://your-raider-endpoint
export RAIDER_ENDPOINT=https://hideout.example.com
```

<%- if rspec? -%>
Expand Down
Loading