Skip to content

Convert remaining standalone tests to testthat framework#138

Merged
krivit merged 5 commits intomasterfrom
copilot/convert-tests-to-testthat
Apr 9, 2026
Merged

Convert remaining standalone tests to testthat framework#138
krivit merged 5 commits intomasterfrom
copilot/convert-tests-to-testthat

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

  • Convert tests/tergm_offset_tests.Rtests/testthat/test-target-offset.R
  • Convert tests/simulate_networkDynamic.Rtests/testthat/test-simulate-networkDynamic.R
  • Convert tests/sim_gf_sum.Rtests/testthat/test-sim-gf-sum.R
  • Convert tests/degree.mean.age.Rtests/testthat/test-degree-mean-age.R
  • Convert tests/dynamic_MLE_blockdiag.Rtests/testthat/test-dynamic-MLE-blockdiag.R
  • Convert tests/dynamic_EGMME.Rtests/testthat/test-dynamic-EGMME.R
  • Convert tests/tergm_parallel.Rtests/testthat/test-tergm-parallel.R
  • Convert tests/dynamic_MLE_blockdiag.bipartite.Rtests/testthat/test-dynamic-MLE-blockdiag-bipartite.R
  • Remove original test files from tests/ (kept tests/testthat.R)
  • Reformat all new test files to Tidyverse Style Guide (spaces around operators, after commas, = in function args; double quotes; long lines wrapped)

Copilot AI linked an issue Apr 9, 2026 that may be closed by this pull request
@krivit krivit force-pushed the copilot/convert-tests-to-testthat branch from e48250d to e3dd58e Compare April 9, 2026 04:28
Copilot AI and others added 3 commits April 9, 2026 04:31
Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/statnet/tergm/sessions/e7c7ae85-14b4-49e7-8957-c4dae713d8e2

Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Copilot AI changed the title [WIP] Convert remaining tests to the testthat framework Convert remaining standalone tests to testthat framework Apr 9, 2026
Copilot AI requested a review from krivit April 9, 2026 04:39
@krivit
Copy link
Copy Markdown
Member

krivit commented Apr 9, 2026

@copilot reformat the new files according to the Tidyverse Style Guide (https://style.tidyverse.org/).

- Add spaces around assignment (<-), binary operators, and = in function args
- Replace single quotes with double quotes for strings
- Replace T/F with TRUE/FALSE
- Break long lines (>80 chars) with each argument on its own line
- Add space after # in comments
- Use 2-space indentation consistently
- Wrap long formulas and function calls

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 9, 2026

@copilot reformat the new files according to the Tidyverse Style Guide (https://style.tidyverse.org/).

Done in commit 2999bca. All 8 new test files have been reformatted: spaces around <- and = in function args, spaces after commas and around binary operators, double quotes instead of single quotes, and long function calls wrapped with one argument per line.

@krivit krivit marked this pull request as ready for review April 9, 2026 07:37
@krivit krivit merged commit 3b6ae75 into master Apr 9, 2026
17 checks passed
@krivit krivit deleted the copilot/convert-tests-to-testthat branch April 9, 2026 07:38
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.

Convert remaining tests to the testthat framework.

2 participants