-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Save tests to separate dir #27
Conversation
Hello!
|
Hi @npanuhin, the tests are simply stored in files |
@Jatana, I still can't find anything in these files. This is the screenshot taken after executing Left: executable file Currently, it creates the following structure:
Which contradicts what you said:
I am wondering, where is it storing data because I can not find any file containing test cases :) And another question: |
I figured out what was going on: As I can see, currently there is not And still, the answer to the last question remains unclear:
|
I think the |
@npanuhin, probably when |
@Jatana you are right, I finally found a file with the |
For me, it stored the |
@Jatana, I have another two questions: |
@qumusabel, yes, that is what I am talking about (on Windows I couldn't find them). It would be very cool if a user could specify a separate folder on the computer so that all test cases from each executable file on the computer would be saved there (e.g. "C:/cache"). To implement this it is needed to save the files with some ID-name so that the names are different for each file. |
Actually, I haven't known about that menu. I think it is a good idea to move it there.
There are specific functions that only work with C++, so I decided to indicate it there. |
Ok, understand.
I don't know how to commit to this PR, so I will make another PR when this one is approved. PS: I meant |
@Jatana, @qumusabel, how about changing the And let me repeat: in Windows |
If |
How about using But maybe we shouldn't use such non-standard characters in file names. So |
Actually, sometimes it is useful to have two or more programs sharing a same test file. Currently, I am trying to think of a tests file name format to can allow this feature. |
What do you mean by “two or more programs”? Other Sublime plugins like Easy CP? Or user's executables? If you mean them: Is this feature implemented now and how does changing one character in path affect it? |
I mean something like if I edit the tests for file |
How about a command/shortcut to copy tests from another source file? |
Possible, but I am thinking more about sharing option than copying. In the example above, If I edit tests in file Well, one solution is to store a link to A.cpp:tests in A.py:tests file. |
Wow, an interesting feature! But in some cases, you do not need this linking. What if a person wants
|
IMO, this would be easier than a sophisticated naming scheme. (Also can provide some expandability) |
Again speaking about colons in filenames in NTFS: files with them...
Please have a look at this answer - it explains how NTFS streams basically work. When I ran the program mentioned in the answer, I got this: Which indicates that the test-case "files" were there. But they probably aren't there... I don't quite understand how NTFS streams work, but I'm sure you didn't mean that when you created the PS:
|
I don't think this is a good idea, because that folder is sure to become cluttered, and if I would need to do something with test files, the unique-id scheme would make it even more difficult to find the file I need. I personally prefer having a folder with test files in each of my working directories, rather than some centralized but obscure location. That way I can just copy the entire working dir somewhere else and it'll still work. |
Ok, I got the point. It would be great to implement both approaches (absolute and relative paths) so that the user has a choice. |
Added option to save
:tests
files to a separate dir(saves to
.tests
by default)