Skip to content

feat(bdd): add bdd android test report#678

Open
pierrelstan wants to merge 1 commit intomainfrom
feat/bdd-report-android
Open

feat(bdd): add bdd android test report#678
pierrelstan wants to merge 1 commit intomainfrom
feat/bdd-report-android

Conversation

@pierrelstan
Copy link
Copy Markdown
Collaborator

@pierrelstan pierrelstan commented Jan 20, 2026

The following changes have been implemented:

  • Add platform-specific report directories (web/android/ios)
  • Make report titles/names platform-aware (Web, Android, iOS)
  • Fix registerAtom to always return success:true on HTTP 200 (core package)
  • Increase registration confirmation waitUntil timeout to 30s
  • Rename NEXT_PUBLIC_WALLET_APP_API → NEXT_PUBLIC_TREETRACKER_USER_API in core, web, wallet
  • Update axios from 1.7.7 to 1.14.0 (treetracker user api)
  • Add bdd-testing.md
  • Add ignoreDeprecation in tsconfig.json (web app)

These changes introduce new errors (primarily due to the environment variable renames):

  • BDD E2E tests in GitHub Actions failed
  • Wallet packages GitHub action failed

This explains how to run the end-to-end BDD test suite and generate HTML reports for the Web and Android platforms.

BDD Test Reports — Web & Android


Prerequisites

Tool Required for
Node.js ≥ 20 + Yarn 4 All platforms
Running yarn web:dev (localhost:3000) Web tests
Running yarn user:dev (localhost:8080) Web tests (registration/login API)
Android emulator running (e.g. Pixel_9a) Android tests
Appium server running (appium) Android tests

Web Tests

1. Start required services

# Terminal 1 — User API (backend)
yarn user:dev

# Terminal 2 — Next.js web app
yarn web:dev

2. Run tests + generate HTML report

yarn bdd:test:web:report

This runs all @web-tagged scenarios (login, register, create-wallet) and automatically generates an HTML report.

3. View the report

apps/bdd/test-artifacts/reports/web/cucumber-html/index.html

Open it in a browser:

open apps/bdd/test-artifacts/reports/web/cucumber-html/index.html

Android Tests

1. Start required services

# Terminal 1 — Start Appium server
appium

# Terminal 2 — Start Android emulator (or launch manually via Android Studio)
yarn native:android

2. Run tests + generate HTML report

yarn bdd:test:android:report

This runs all @native-tagged scenarios against the Android emulator and generates an HTML report.

3. View the report

apps/bdd/test-artifacts/reports/android/cucumber-html/index.html

Open it in a browser:

open apps/bdd/test-artifacts/reports/android/cucumber-html/index.html

Report locations summary

Platform Report path
Web apps/bdd/test-artifacts/reports/web/cucumber-html/index.html
Android apps/bdd/test-artifacts/reports/android/cucumber-html/index.html
iOS apps/bdd/test-artifacts/reports/ios/cucumber-html/index.html

Available BDD scripts

Script Description
yarn bdd:test:web:report Run web tests + generate report
yarn bdd:test:android:report Run Android tests + generate report
yarn bdd:e2e:login Run login feature only (web)
yarn bdd:e2e:register Run register feature only (web)
yarn bdd:e2e:wallet Run create-wallet feature only (web)
yarn bdd:e2e:debug Run web tests in debug mode

@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from 4d9bc34 to 2db0fbe Compare January 20, 2026 21:47
@dadiorchen
Copy link
Copy Markdown
Collaborator

@pierrelstan please upload the report, like we done here: https://github.com/Greenstand/treetracker-wallet-app/tree/main/apps/bdd/test-artifacts

@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from 2db0fbe to 8324b36 Compare January 20, 2026 23:42
@pierrelstan pierrelstan removed the request for review from dadiorchen January 20, 2026 23:53
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from 8324b36 to 602feb4 Compare January 21, 2026 03:13
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch 7 times, most recently from e2643f3 to bd77d0c Compare January 21, 2026 06:33
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from bd77d0c to b1653f5 Compare January 21, 2026 06:38
@pierrelstan pierrelstan reopened this Jan 21, 2026
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from a147afc to 3e33ba6 Compare January 21, 2026 07:11
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch 6 times, most recently from fafc793 to eefbbd2 Compare April 1, 2026 05:15
@pierrelstan pierrelstan requested review from dadiorchen and removed request for dadiorchen April 1, 2026 05:41
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch 3 times, most recently from 9788dd2 to 0c913da Compare April 2, 2026 04:05
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch 5 times, most recently from 0a56295 to c6b448a Compare April 2, 2026 05:24
@pierrelstan pierrelstan force-pushed the feat/bdd-report-android branch from c6b448a to b248fb3 Compare April 2, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants