Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan authored Mar 21, 2024
1 parent 26e1a60 commit f6fe3d2
Showing 1 changed file with 55 additions and 53 deletions.
108 changes: 55 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,59 +15,6 @@
|------------|-------------|----------|
| `runners` | A comma separated list of runner ids from previous steps | Yes |

### Outputs
```
🔄 Processing: shout-test
✅ Shout Test
Test code:
./test/bin/shout.sh <stdin>hello
Total points for shout-test: 10.00/10
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
🔄 Processing: a-command-test
✅ A command test
Test code:
rspec hello_spec.rb
Total points for a-command-test: 20.00/20
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
🔄 Processing: python-test
✅ test sample - line 4
Test code:
collection = [1, 2, 3, 4, 5]
assert sample_from_collection(collection) in collection
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
🔄 Processing: python-test-with-score
✅ test sample - line 4
Test code:
collection = [1, 2, 3, 4, 5]
assert sample_from_collection(collection) in collection
Total points for python-test-with-score: 30.00/30
Test runner summary
┌────────────────────┬─────────────┬─────────────┐
│ Test Runner Name │ Test Score │ Max Score │
├────────────────────┼─────────────┼─────────────┤
│ shout-test │ 10 │ 10 │
├────────────────────┼─────────────┼─────────────┤
│ a-command-test │ 20 │ 20 │
├────────────────────┼─────────────┼─────────────┤
│ python-test │ 0 │ 0 │
├────────────────────┼─────────────┼─────────────┤
│ python-test-with-… │ 30 │ 30 │
├────────────────────┼─────────────┼─────────────┤
│ Total: │ 60 │ 60 │
└────────────────────┴─────────────┴─────────────┘
🏆 Grand total tests passed: 4/4
```

### Usage

1. Add the GitHub Classroom Reporter to your workflow.
Expand Down Expand Up @@ -128,3 +75,58 @@ jobs:
PYTHON-TEST-WITH-SCORE_RESULTS: "${{steps.python-test-with-score.outputs.result}}"
with:
runners: shout-test,a-command-test,python-test,python-test-with-score


### Example Output
```
🔄 Processing: shout-test
✅ Shout Test
Test code:
./test/bin/shout.sh <stdin>hello

Total points for shout-test: 10.00/10

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

🔄 Processing: a-command-test
✅ A command test
Test code:
rspec hello_spec.rb

Total points for a-command-test: 20.00/20

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

🔄 Processing: python-test
✅ test sample - line 4
Test code:
collection = [1, 2, 3, 4, 5]
assert sample_from_collection(collection) in collection

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

🔄 Processing: python-test-with-score
✅ test sample - line 4
Test code:
collection = [1, 2, 3, 4, 5]
assert sample_from_collection(collection) in collection

Total points for python-test-with-score: 30.00/30

Test runner summary
┌────────────────────┬─────────────┬─────────────┐
│ Test Runner Name │ Test Score │ Max Score │
├────────────────────┼─────────────┼─────────────┤
│ shout-test │ 10 │ 10 │
├────────────────────┼─────────────┼─────────────┤
│ a-command-test │ 20 │ 20 │
├────────────────────┼─────────────┼─────────────┤
│ python-test │ 0 │ 0 │
├────────────────────┼─────────────┼─────────────┤
│ python-test-with-… │ 30 │ 30 │
├────────────────────┼─────────────┼─────────────┤
│ Total: │ 60 │ 60 │
└────────────────────┴─────────────┴─────────────┘
🏆 Grand total tests passed: 4/4
```

0 comments on commit f6fe3d2

Please sign in to comment.