Update integration_test example to latest BRP methods

Aperta
#26,385 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
testing

Direzione di ricerca

Start by locating the integration test example and reading its @FeathersButton entry in the bsn! and the setup for the two remote plugins. The issue also suggests optional port and access-control changes, so clarify which of those are in scope before starting. Done means the agreed example changes are in place and the integration test still works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A-Dev-Tools C-Examples C-Testing S-Needs-Design X-Contentious

The project goal #25894 is basically complete, but we can update the integration test example to use it more deeply:

  • Name the button. Add #Button to the @FeathersButton entry in the bsn!.
  • Count frames. Add FrameTimeDiagnosticsPlugin::default() next to the two remote plugins, so every frame wait has its frame_count diagnostic. The better fix is outside the example: #[derive(Reflect)] on FrameCount in bevy_diagnostic, after which the client would read the resource and the driver would not need the plugin.
  • The port. (optional) The example currently listens on the default 15702. It would be better to read a standard environment variable like BEVY_REMOTE_PORT. We could also make it so that remote access is disabled unless the env var is present.

@alice-i-cecile @mockersf

Lingua principale
Rust
Stelle
49.7k
Fork
5k
Merge medio
3g 19h
PR unite (30g)
134

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bevyengine/bevy

Tutte le issue di bevyengine/bevy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.