If you like the "Z80 Unit Test Adapter" please consider supporting it.
Z80 Unit Test Adapter
This is a unit test adapter for the Z80 assembler language. It allows to run unit tests very comfortable from the vscode UI.
The adapter is just a mediator, it requires other extensions
If this is working (i.e. you can execute Z80 unit tests from the command palette) then the z80-unit-tests extension should run out-of-the box:
In this case register 'a' was tested for the number 1 ("TEST_A 1") but obviously it was 0. The testcase failed and stopped here. Please note that the code coverage indicated by the green background also stops here because the lines after the failure were not executed anymore.
There is a log available. If something does not work take a look there.
You can have a look at the z80-sample-program. It also contains a complete setup for unit tests.
This extension is based on the examples sources vscode-example-test-adapter by Holger Benl
It makes use of the brilliant Test Explorer extension and API (also by Holger Benl).
z80-unit-test is licensed under the MIT license.
The source code is available on github.