You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ title: Contributing
34
34
<h2>Creating Exercises</h2>
35
35
<p>Each exercise needs:</p>
36
36
<ul>
37
-
<li>Template file (incomplete code for students)</li>
37
+
<li>Template file (incomplete code for learners to complete)</li>
38
38
<li>Test file (verification tests)</li>
39
-
<li>Solution file (complete implementation)</li>
39
+
<li>Solution file (complete implementation, base code is already in place which will run the test cases written for template to picked for solutions as well)</li>
40
40
<li>Catalog entry in <code>catalog.yaml</code></li>
41
41
</ul>
42
42
</div>
@@ -53,13 +53,14 @@ title: Contributing
53
53
54
54
<divclass="gopher-card">
55
55
<h2>Testing</h2>
56
-
<p>Before submitting your changes:</p>
57
-
<pre><code># Run all tests
58
-
go test ./...
56
+
<p>Before submitting your changes, build locally and verify exercises using the CLI:</p>
57
+
<pre><code># Build the CLI
58
+
go build -o bin/golearn ./cmd/golearn
59
+
chmod +x bin/golearn
59
60
60
-
# Test exercises
61
+
# Verify template exercises (incomplete templates should fail)
61
62
./bin/golearn verify
62
63
63
-
# Test with solutions
64
+
# Verify a specific exercise with its solution (should pass)
0 commit comments