https://github.com/jjonescz/roslyn-test-updater

Updates snapshot tests inside Roslyn compiler

https://github.com/jjonescz/roslyn-test-updater

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

Updates snapshot tests inside Roslyn compiler

Basic Info
  • Host: GitHub
  • Owner: jjonescz
  • Language: C#
  • Default Branch: main
  • Homepage:
  • Size: 271 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed 5 months ago
Metadata Files
Readme

README.md

Roslyn test updater

This simple command-line tool automatically updates snapshot tests in the Roslyn repository.

Warning Ironically, this tool does not use Roslyn to modify the sources, only a simple custom parser. Therefore, it often fails for tests formatted in non-standard way. However, PRs are welcome!

Building

ps1 dotnet publish RoslynTestUpdater.csproj -c Release /p:PublishProfile=FolderProfile

(Or use Visual Studio and hit "Publish".)

Then add the resulting folder to PATH (or copy the .exe, it's self-contained).

Usage

Provide (failed) test outputs on stdin (see an example of accepted input). The tool automatically patches testing code to match reality.

Warning It is recommended to have your Git working directory clean, so you can see the changes made by the tool, and if some are incorrect, you can simply undo them.

Furthermore, the tool writes test.playlist into the current directory with a list of failed tests (in Visual Studio Test Explorer format).

From command line

dotnet test | RoslynTestUpdater should work.

From Visual Studio

  1. Clear Tests Output:

image

  1. Run your tests:

image

  1. Copy Tests Output (Ctrl+A, Ctrl+C):

image

  1. Make sure your Git working directory is clean:

image

  1. Start RoslynTestUpdater with clipboard contents as input. In PowerShell:

ps1 # DON'T copy-paste this code snippet, you would overwrite your clipboard contents 😉 Get-Clipboard | RoslynTestUpdater

  1. Enjoy automatically patched test code 🎉:

image

Owner

  • Name: Jan Jones
  • Login: jjonescz
  • Kind: user
  • Location: Prague, Czech Republic
  • Company: @Microsoft

C# (Roslyn) compiler dev at @Microsoft

GitHub Events

Total
  • Push event: 2
Last Year
  • Push event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 52
  • Total Committers: 1
  • Avg Commits per committer: 52.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Jan Jones j****s@m****m 52
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels