Questions tagged [runner]
250 questions
1
vote
1 answer
Extending ParentRunner in Junit
I would like to run tests with extending from ParentRunner.
I'm doing that for learning, not any specific scenario.
I have the classes below and below there's the output as well.
I don't understand a few things:
1. Why is "describeChild" called 3…

Richie
- 11
- 2
1
vote
0 answers
Cucumber get name of test runner class
I'm trying to get the name of the current executing runner class, e.g. for:
@RunWith(Cucumber.class)
@CucumberOptions(
features={"Features"},
glue={"src.stepdefinition"},
monochrome=false
)
public class HelloWorld {
}
I need to have the class name…

user24502
- 1,662
- 4
- 16
- 21
1
vote
0 answers
adding dll path on Team city for nUnit runner
I tried a lot,but still not getting proper link and articles which can sort out my problem.
I have some NUnit test(s), which I want to integrate with TeamCity server; for this I am using the NUnit runner type in TeamCity. I gave my dll file path…

Raj
- 151
- 1
- 14
1
vote
1 answer
GitLab runner configuration
I am using standard GitLab runner.
I need to determinate updates of master branch and updates of development branch. Beacause I want to copy master branch to production server and dev branch to test-server.
But I have only one .gitlab-ci.yml file…

Artem Ganzha
- 11
- 1
- 4
1
vote
1 answer
Program tester, bash
I'm trying to test a program (tp3) with several input files and printing the output in another file. So I've designed the following bash script name runner to do everything at the same time:
#!/bin/bash
rm $2
clear
FILES=(`ls ${1}`)
cmd='./tp3'
for…

tul1
- 412
- 1
- 6
- 22
1
vote
1 answer
rails runner ignored subdirectory RAILS_RELATIVE_URL_ROOT
Using rails 4.2.0.beta4.
It looks like the env RAILS_RELATIVE_URL_ROOT is ignored when running scripts by runner. It works on my webserver when not using runner. But with runner I get this:
RAILS_RELATIVE_URL_ROOT=/somewhere ./bin/rails runner "puts…

Markus
- 5,667
- 4
- 48
- 64
1
vote
2 answers
Running Rails Task From Cron
I have a Rails runner task that I want to run from cron, but of course cron runs as root and so the environment is set up improperly to get RVM to work properly. I've tried a number of things and none have worked thus far. The crontab entry is:
* 0…

Steve Ross
- 4,134
- 1
- 28
- 40
1
vote
3 answers
Why is Rails runner not returning a result?
I am having problems with the Rails runner. When I try to use if, even by command line, it does nothing! it doesn't show error messages, nor results from actions.
For example, if I try
rails runner Credit.count
having defined the model Credit, and…

Juan P Reyes
- 77
- 9
1
vote
0 answers
How to create multiple unittest reports by executing each unittest only once?
I need multiple output formats from my unittest cases..
HTML output
XML output
Currently I need to execute all test cases multiple times with
HTML Test Runner for HTML output
XML Test Runner for XML output
This is because result object is…

shahjapan
- 13,637
- 22
- 74
- 104
1
vote
1 answer
Rails 4.0 receiving emails - no such file (runner)
Up until now I've been using script/runner to forward bouncebacks to eblast-bounceback@mydomain.com and eblast-bounceback@dev.mydomain.com. However it is no longer working in Rails 4.0. I also can't seem to find a good resource online to illustrate…

SnakeWasTheNameTheyGaveMe
- 2,522
- 2
- 28
- 70
1
vote
1 answer
Strange output when invoking model method from a runner in Rails
I'm invoking a model method from a runner:
rails runner -e development "Sala.new.recipient_list2"
Model method:
def recipient_list2
email_list = Sala.all(email)
email_list.each do |recipient|
puts "#{recipient}"
end
end
And I'm getting…

user3502318
- 13
- 2
1
vote
1 answer
Sending specs in grunt using grunt-protractor-runner
I am using grunt-protractor-runner plugin and in the protractor target I want to send the specs param containing the test to run.
In the grunt file my target looks as follows:
testIntegration:
{
options:
{
args: {
specs:…

user3278230
- 11
- 3
1
vote
1 answer
How to add a runner to an array of results
I have been trying to figure out how to add runner information into an array of runner information. It should contain at most 100 runners.
This is part of a larger project that must fulfill these requirements:
Operations (methods):
• A constructor…

user3050884
- 31
- 1
- 6
1
vote
2 answers
My Runner using a Handler is not working on android
Here's what I got so far guys, this is my app, all it does is display a digital clock and move the clock to a new part of the screen every 30 seconds, but it doesn't actually do that last part, here's the code:
public class MainActivity extends…

rebble
- 33
- 1
- 8
1
vote
0 answers
How to check for corrupt exe files using python?
Is there any way to find corrupt exe from many exe's through python, or any existing exe runner module? I want to check the exit status of a exe whether a file is executed perfectly or ended up with an error.
Like the program below for testing…

Anti Virus
- 11
- 1