Class: LearnTest::Strategies::None
Instance Attribute Summary
#options, #runner
Instance Method Summary
collapse
#argv, #check_dependencies, #cleanup, #configure, #die, #initialize, #learn_oauth_token, #output, #push_results?, #run_install, #user_id, #username
Instance Method Details
#results ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/learn_test/strategies/none.rb', line 18
def results
{
username: username,
github_user_id: user_id,
learn_oauth_token: learn_oauth_token,
repo_name: runner.repo,
build: {
test_suite: [{ framework: 'none' }]
},
examples: 0,
passing_count: 0,
pending_count: 0,
failure_count: 0,
failure_descriptions: ''
}
end
|
#run ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/learn_test/strategies/none.rb', line 10
def run
puts <<~MSG
This directory doesn't appear to have any specs in it, so there’s no test to run.
If you are working on Canvas, this assignment has been submitted. You can resubmit by running `learn test` again.
MSG
end
|
#service_endpoint ⇒ Object
6
7
8
|
# File 'lib/learn_test/strategies/none.rb', line 6
def service_endpoint
'/e/flatiron_none'
end
|