maziac / DeZog

Visual Studio Code Debugger for Z80/ZX Spectrum.
MIT License
210 stars 34 forks source link

Unit Tests: "Code for tests is not present" error instead of tests being run (v2.3.2) #71

Closed evolutional closed 2 years ago

evolutional commented 2 years ago

Describe the bug When using the Unit Test feature, I get the error "Code for tests is not present" when attempting to run a test.

To Reproduce See example in this repository which mirrors my typical project set up and how I am trying to use the testing system.

It has two NEX files, one for the "game" and one for the "tests".

Expected behavior Expected the unit tests to run correctly

Screenshots image

image

Version etc. (please complete the following information):

Additional context Project is in the repo https://github.com/evolutional/dzut

maziac commented 2 years ago

It's running now. Basic problem was that the tests origin was at 0x0000. I moved it to 0xC000.

Please note: I haven't tested with DeZog v2.3.2 but with the current beta 2.4.0-6. Please upgrade: https://github.com/maziac/DeZog/releases/tag/v2.4.0-x

I attached your project with the changes here: dzut.zip

Other changes I did:

Furthermore: You can deinstall the "Z80 Unit Tests" extension. If you leave it in you might experience to find 2 kind of unit tests, could be irritating.

Please let me know if it works.

evolutional commented 2 years ago

Ah, perfect! That was it exactly - verified on v2.3.2

Sorry for the dumb user report!