Update integration_test example to latest BRP methods

Open
#26,385 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Rust
Stars
49.8k
Forks
5.1k
Avg merge
3d 4h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.