How to test correctly (before opening a pull request)? #6128
-
|
CONTRIBUTING.md says:
But when I run this command on the When I run this test with go test -tags mobile ./internal/driver/mobileWhat is correct? With or without After creating a pull request, the CI runs these tests: go test -race -tags "ci,migrated_fynedo" ./...
go test -race -tags mobile,ci,migrated_fynedo ./...Both succeed on my laptop. Which tests should I run and which ones must pass before I create a pull request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Both :) the tests in mobile package should pass without mobile flag (for sake of avoiding exclusions in path list) and with mobile tag you're testing the Android/iOS build.
Yup, the "ci" tag is for items that cannot be run on a headless Linux server. But feel free to open a PR with a failing test - just don't tick the "tests pass" and note what the issue is. |
Beta Was this translation helpful? Give feedback.
Both :) the tests in mobile package should pass without mobile flag (for sake of avoiding exclusions in path list) and with mobile tag you're testing the Android/iOS build.
Yup, the "ci" tag is for items that cannot be run on a headless Linux server.
But feel fre…