When reviewing code in github, it's sometimes hard to match unit tests with the code that they are testing.
To help that process, this extension links those two together. It matches these files by name, and adds simple links that allow you to jump back and forth between them.
This way you can see more easily if the tests are doing what they should and if the code is well tested.
The name matching works based on pairs of regular expressions:
- The first expression matches the "code" files. That is, the files being tested. Capture groups in this expression will be used in the second one.
- The second expression tries to find matching test files. It uses the captured matches from the first one to find test files with a name that corresponds to the "code" file.
These pairs of expressions can be managed in the options window.
The regular expressions use the javascript syntax. Most notably, the capture groups are referenced by $1, $2, etc.
The extension comes pre-configured with a simple example expression matching C# files.
Feel free to use it, either as inspiration or for actual work.
Please let me know if you have any comments or suggestions.
Enjoy!
Extore is a team of professionals who are passionate about creating extensions for web browsers. This devotion also gives us opportunity to appreciate work of other people. We get inspired by useful, open source extensions made by developers all over the world. Our strong belief is that one should share helpful add-ons with others. That’s why we’d like to present you our ever-growing list of favourite extensions that have inspired us. Moreover, as you probably have already learned, sometimes struggling for the best brings an end to the good. Talking about add-ons it often turns out that an upgrade is worse then previous version. Also it can become really tricky to get back to the beloved version of your favourite extension. That’s why we’re going to make not only the latest, but all versions of our favourite (and we hope yours too) add-ons available for download. No more compromises, just stick to the version you really like!