https://github.com/jjonescz/roslyn-test-updater
Updates snapshot tests inside Roslyn compiler
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
Repository
Updates snapshot tests inside Roslyn compiler
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
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
- Clear Tests Output:

- Run your tests:

- Copy Tests Output (Ctrl+A, Ctrl+C):

- Make sure your Git working directory is clean:

- Start
RoslynTestUpdaterwith clipboard contents as input. In PowerShell:
ps1
# DON'T copy-paste this code snippet, you would overwrite your clipboard contents 😉
Get-Clipboard | RoslynTestUpdater
- Enjoy automatically patched test code 🎉:

Owner
- Name: Jan Jones
- Login: jjonescz
- Kind: user
- Location: Prague, Czech Republic
- Company: @Microsoft
- Website: janjones.me
- Repositories: 70
- Profile: https://github.com/jjonescz
C# (Roslyn) compiler dev at @Microsoft
GitHub Events
Total
- Push event: 2
Last Year
- Push event: 2
Committers
Last synced: about 1 year ago
Top Committers
| Name | 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