Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Dedicated reporter #7

Merged
merged 23 commits into from
Feb 20, 2022
Merged

Conversation

krlmlr
Copy link
Contributor

@krlmlr krlmlr commented Mar 23, 2021

I have set up an R package infrastructure for easier testing. To run the reporter, it should be sufficient to source reporter-vscode.R and to run library(testthat). Some internal code was borrowed from testthat.

The output is in the .md file. The format can be tweaked so that it's easier for the TypeScript side.

Who should be responsible for aggregating the results within a test? Should R Test Explorer offer an even more fine-grained tree view to show every expectation?

Expectations can also run outside tests, how to handle that?

Do we still need to parse the test structure ourselves? The reporter gives file + line information for each expectation, we only need to find the surrounding test_that() call.

I think the TypeScript side should be responsible for creating the testRunId?

Something keeps changing a .wasm and a .png file, I committed them here for now but these shouldn't be part of the PR.

@yonicd
Copy link

yonicd commented Mar 23, 2021

@krlmlr this looks like a similar idea for a dedicated area for the reporter. https://marketplace.visualstudio.com/items?itemName=emilylilylime.vscode-test-explorer-diagnostics

@meakbiyik meakbiyik changed the base branch from master to testthat-reporter February 20, 2022 12:36
@meakbiyik meakbiyik merged commit 59fbc84 into meakbiyik:testthat-reporter Feb 20, 2022
meakbiyik pushed a commit that referenced this pull request Feb 20, 2022
* Package infrastructure

* These files keep updating, not sure what to do about them

* Tweak DESCRIPTION

* Change license to MIT

* Use testthat

* Rename

* Import infrastructure from testthat

* Add TAP reporter as base

* Tweak test infrastructure

* Avoid teardown for now

* Working test

* Fix R CMD check

* Rename reporter

* Add first JSON output

* More JSON

* No contexts

* Start and end test

* Start and end reporter

* Add result

* File output, remove TAP

* Remove context

* Document

* Revert "These files keep updating, not sure what to do about them"

This reverts commit c39265a.
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.

3 participants