-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load Error if a package contains a coverage.list file for use with TestTools #389
Comments
I need to check, but as far as I remember, this happens on IRIS side, when it loads tests. |
Could you explain a bit where this file is located, and during which process exactly it tries to be loaded? |
Hi,
My code is structured in such a way that the Unit Tests are with its applicable package.
For example:
src/MainPackage/MyClass.cls
srsrc/MainPackage/UnitTests/MyClass.cls
The code coverage by testtools is controlled with the coverage.list file in
src/MainPackage/coverage.list
The coverage.list file must be present in the path being scanned for unit tests.
I am not sure if it will help to move all the tests to a different directory like unit-test/
I am testing a new module.xml file.
In a testing namespace I am doing the load -dev -verbose /path/to/module.xml to check that the module file is working correctly and that the compilation completes.
Kind regards,
[upload image]
Stefan Cronje
Director
comprehensoft
M: +27 82 641 1478
W: https://www.comprehensoft.com<https://www.comprehensoft.com/>
E: ***@***.******@***.***>
[linkedin]<https://www.linkedin.com/company/comprehensoft>
IMPORTANT: The contents of this email and any attachments are confidential. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
From: Dmitry Maslennikov ***@***.***>
Sent: Sunday, May 14, 2023 1:30 PM
To: intersystems/ipm ***@***.***>
Cc: Stefan Cronje ***@***.***>; Author ***@***.***>
Subject: Re: [intersystems/ipm] Load Error if a package contains a coverage.list file for use with TestTools (Issue #389)
Could you explain a bit where this file is located, and during which process exactly it tries to be loaded?
—
Reply to this email directly, view it on GitHub<#389 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5MGA7O5BO3J7FQTU5UF7BDXGC6ZXANCNFSM6AAAAAAYBBU2BE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Unit tests should be their own separate resource directory - that will fix the issue. I have a documentation task for TestCoverage about using alongside IPM (intersystems/TestCoverage#28) and that will be the venue to cover best practices. |
ERROR! Unable to import file '/home/stefanc/t..../coverage.list' as this is not a supported type.
Is it possible to exclude specific files or file masks from the import section?
The text was updated successfully, but these errors were encountered: