posit-dev / posit-dev/positron

R: Make it possible to write integration tests that can access RMAIN, for testing callbacks into Rust

Open
#2,791 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement testing
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

Currently, the Amalthea R integration tests cover a variety of scenarios that involve calling Rust from R, but scenarios wherein R calls Rust to e.g. trigger opening a comm (say, for a connection, data explorer, or data viewer) can't be performed under integration tests since they run in a context wherein there is no RMAIN object to handle the request.

We can test how these scenarios work via other means in some cases; for example, the data explorer test manually open comms to check various features. However, it'd make testing more cohesive and representative of real-world interactions if our test environment more closely resembled the real runtime environment.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the Amalthea R integration-test harness and the runtime setup that provides RMAIN. Compare it with the data explorer test's manual comm handling; done means integration tests can exercise R-to-Rust callbacks that open comms through RMAIN in a runtime-like context.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, rust
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.