-
Notifications
You must be signed in to change notification settings - Fork 163
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
Print an alert when trying to test a non-test file #2506
Comments
The reason for Emma 's confusion was that testing testparallel.g returned true. From the pov of Wrt Emma's suggestion: I don't think it is necessary to talk about what a test file or non-test file is. If I read the proposed warning, I would then have to look into the documentation to find out the exact definition of when a file is considered a test file. I think Alternatively, one could let testing a file which contains no |
I agree we should do something better. I often run Read on tests and Test and gap files. I think we should:
|
+1. Maybe a warning when |
|
Clearly As to |
@emmakatherina Thanks for your report. This is now improved in the master branch, and this shall be in GAP 4.10. |
This will also be further improved by #2524 |
While working on a GAP package I tried to test a file called
testparallel.g
which itself already callsTestDirectory()
. As a GAP beginner I didn't know that this file should be called by writingRead("testparallel.g")
and wouldn't have found out if I wasn't explicitely told about it.Maybe we could make this part easier for beginners by printing a warning when a non-test file is called by
Test()
?Me and @ssiccha where thinking about something like
The tested file is not a test file and should preferably be called with Read().
Would it be easy to distinguish between test files and non-test files? What do you think about this suggestion?
The text was updated successfully, but these errors were encountered: