• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MarkUsProject / Markus / 8622617819
92%

Build:
DEFAULT BRANCH: master
Ran 09 Apr 2024 09:59PM UTC
Jobs 18
Files 589
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2024 09:36PM UTC coverage: 91.929% (+0.02%) from 91.909%
8622617819

push

github

web-flow
Handle case where no test groups are runnable by students (#7003)

* Handle case where no test groups are runnable by students

In the autotest-settings page (in the instructor view), the instructor has the ability to make all test groups NOT-runnable by students. Currently, a request is still sent to the autotesting server and 0/0 is shown on the website. Instead, we check this inside the automated_tests_controller#execute_test_run action, and if NO test groups are student-runnable, we flash an appropriate message and return, avoiding a redundant request to the autotesting server.

* Testing for the change

I had to modify the current tests because the change of this pull request does change the behavior of automated testing. In particular, if none of the test-groups are runnable by students, now the test-execution job does not get enqeued as a job (which was the whole point, since if it gets enqueued to AutotestRunJob then an unnecessary request will be made to the autotest server). But this made some of the existing tests for execute_test_run (in automated_test_controller.rb) fail. This is because the factory-produced assignment object used in these tests had the test_groups attribute/association uninitialized. To test the new behavior, instead of generating a simple :assignment, the tests now use an :assignment_with_criteria_and_test_results, and in the tests with context , I had to manually update the test_groups attribute of the assignment to specify the test_group is runnable by students. Overall, we are now testing the case where none of the test groups are runnable by students, so no job should be enqueued, and the case where at least one test-group is student-runnable, in which case the job should be enqueued as usual.

* Update Changelog

* Testing and querying improvements

Refactor the new testing by creating new factories for assignments with/without student-runnable tests (and, by extension, corresponding test-group factorie... (continued)

524 of 1238 branches covered (42.33%)

Branch coverage included in aggregate %.

29 of 29 new or added lines in 4 files covered. (100.0%)

1 existing line in 1 file now uncovered.

40892 of 43814 relevant lines covered (93.33%)

968.0 hits per line

Jobs
ID Job ID Ran Files Coverage
17 rspec - 8622617819.17 09 Apr 2024 09:59PM UTC 0
94.95
GitHub Action Run
18 jest - 8622617819.18 09 Apr 2024 09:59PM UTC 0
57.63
GitHub Action Run
14 jest - 8547391115.14 04 Apr 2024 12:54AM UTC 0
57.63
GitHub Action Run
13 rspec - 8547391115.13 04 Apr 2024 12:54AM UTC 0
94.9
GitHub Action Run
1 rspec - 8528232323.1 02 Apr 2024 07:38PM UTC 0
94.9
GitHub Action Run
6 rspec - 8528288102.6 02 Apr 2024 07:44PM UTC 0
94.9
GitHub Action Run
7 jest - 8528427948.7 02 Apr 2024 07:57PM UTC 0
57.63
GitHub Action Run
8 rspec - 8528427948.8 02 Apr 2024 07:56PM UTC 0
94.9
GitHub Action Run
11 jest - 8540497308.11 03 Apr 2024 02:51PM UTC 0
57.63
GitHub Action Run
12 rspec - 8540497308.12 03 Apr 2024 02:50PM UTC 0
94.9
GitHub Action Run
9 jest - 8528500936.9 02 Apr 2024 08:04PM UTC 0
57.63
GitHub Action Run
10 rspec - 8528500936.10 02 Apr 2024 08:04PM UTC 0
94.9
GitHub Action Run
5 jest - 8528288102.5 02 Apr 2024 07:44PM UTC 0
57.63
GitHub Action Run
4 rspec - 8528286393.4 02 Apr 2024 07:44PM UTC 0
94.9
GitHub Action Run
3 jest - 8528286393.3 02 Apr 2024 07:44PM UTC 0
57.63
GitHub Action Run
2 jest - 8528232323.2 02 Apr 2024 07:38PM UTC 0
57.63
GitHub Action Run
15 jest - 8574041775.15 05 Apr 2024 06:41PM UTC 0
57.63
GitHub Action Run
16 rspec - 8574041775.16 05 Apr 2024 06:41PM UTC 0
94.95
GitHub Action Run
Source Files on build 8622617819
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8622617819
  • 7059ba42 on github
  • Prev Build on master (#8574041775)
  • Next Build on master (#8638601249)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc