UnitTesting
UnitTesting copied to clipboard
WIP New command API
This is a WIP to gather some feedback, it's not yet ready to be merged.
The main idea here is to create an API compatible with the spec outlined in https://github.com/gerardroche/sublime-test.
The PR currently includes the new functionality:
- Improved support for https://github.com/gerardroche/sublime-test
- Run tests for current file
- Switch module/test-module command
- Support for color in test results including diffs
- Done messages are now only printed on CI test runs
Awesome, looking forward to it.
Is it ready to review?
I haven't had time to do anything more with it. It works though, and it's pretty much backwards compatible, so merging it shouldn't really break anything.
Some of the new commands haven't been implemented yet and I don't know when I'll get the time to do those, but they can be added later.
The new commands that have been implemented only really add new functionality without breaking existing functionality.
The old commands haven't been removed, some of them now just proxy to the new command and print a deprecation message.
The internals of the code is maybe a little messy and could maybe do with some cleanup, but that won't affect end users. So I think it can probably merged. Like I said, I've been using it without any problems at all.