-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Move cases_test.go content into <exercise>_test.go #1872
Comments
What is the exercise for which you can't see the test cases? |
@bitfield Moving all the test cases into the usual Nevertheless it might be worth opening an issue in exercism/exercism if its really the case that additional editor files don't show up for the mentor. As @andrerfcsantos said, if you give us an example, we can check it was at least configured correctly on our side. |
@andrerfcsantos Let's use this issue to track the task of getting rid of the cases_test.go files (I adjusted the issue title accordingly). Originally I thought this is a super easy copy&paste task but now I realized that the go track uses test case generators and those generate the cases_test.go files. That means if we want to move the cases, we need to adjust the generator(s). Do you still think we should go ahead with the plan? |
@junedev I think we should. But what do you think it'd be easier for now, adjusting the generators or making the test runner look for the tests in a |
Adjusting the test runner is probably easier (especially because it only needs to be done once for everything), however that does not solve the issue that bitfield mentioned that it is rather unusual to have separate cases files in Go.
|
@andrerfcsantos I believe it was "Word Search". The student was having a problem because |
Recently I saw what @bitfield is saying in another exercise - the exercise had My suspicion is that students where this is happening started the exercise before our changes to This should not be a problem for people who are recently starting the exercise completely fresh. june just sent me a mentoring request for "Word Search" and I can see the I think this happens just because the exercise was started fresh. A few weeks ago I opened a similar issue about files that were renamed not showing in the editor, even after an update: exercism/exercism#5954. I guess the underlying issue here is the same and the solution should also the same - the files in the editor won't update unless the user either "Revert to exercise start" or "Revert to last iteration". Like it was mentioned in that issue, I agree that this sort of updates should be done automatically or make more explicit to the user that the "files available" changed and prompt an action. |
Mentors can't see test cases. I assume the student can see the test cases, as it would make life rather difficult for them if they couldn't, but I can't!
For example, I have a student asking:
Neither do I, as there's no way of seeing what the cases are. It's usual in Go to define your cases either in the test function itself, or at least in the same source file. Maybe we could do the same?
The text was updated successfully, but these errors were encountered: