test-runner

No tasks available when executing JUnit runner class

廉价感情. 提交于 2021-02-17 21:10:16
问题 I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner class. What am I doing wrong? Here is my build.gradle : plugins { id 'java' } sourceCompatibility = 1.8 apply plugin: 'java' repositories { mavenCentral() } compileJava.options.encoding = "UTF-8" dependencies { compile 'org.codehaus.groovy:groovy-all:2.3.11' testCompile group: 'junit', name: 'junit',

No tasks available when executing JUnit runner class

≡放荡痞女 提交于 2021-02-17 21:10:12
问题 I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner class. What am I doing wrong? Here is my build.gradle : plugins { id 'java' } sourceCompatibility = 1.8 apply plugin: 'java' repositories { mavenCentral() } compileJava.options.encoding = "UTF-8" dependencies { compile 'org.codehaus.groovy:groovy-all:2.3.11' testCompile group: 'junit', name: 'junit',

MSBuild to run unit tests

早过忘川 提交于 2020-01-15 05:55:07
问题 I am trying to configure CruiseControl .net to build our repository code periodically and run the tests included in the solution. I have configured the retrieving code from the svn server and building part. But I am unable to run tests on it. MSBuild keeps on complaining that. error MSB4057: The target "Test" does not exist in the project. I also tried running the tests through command line to see if that works with the same error. I used: MSBuild.exe TestProject.csproj /t:Test My

Googletest Eclipse C++ : How to have both test and production executable?

不羁的心 提交于 2020-01-10 19:53:11
问题 I have a basic question regarding Googletest in Eclipse. I am using the test-runner plug in to run the Googletests. But I need to specify a binary which runs my unit tests (of course that makes sense.) The problem is that in my project I now have two main functions, one to run the actual program and one int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } to run the google tests. Each time I want to run one I comment the other out, which of

Make phantomjs run all '*.js' files in the current directory

二次信任 提交于 2020-01-02 09:59:22
问题 I want to write a script to call phantomjs on a bunch of test scripts in a directory. This script runs the first test and then exits. #!/bin/bash find . -maxdepth 1 -name '*.js' -type f -exec phantomjs {} + Executing a similar command with echo , like find . -maxdepth 1 -name '*.js' -type f -exec echo {} + prints (as expected) all the filenames in the directory. How can I make phantomjs run all .js files in the current directory? Is this a bash problem or a phantomjs problem? 回答1: AFAIK

Googletest Eclipse C++ : How to have both test and production executable?

ぐ巨炮叔叔 提交于 2019-12-20 05:48:12
问题 I have a basic question regarding Googletest in Eclipse. I am using the test-runner plug in to run the Googletests. But I need to specify a binary which runs my unit tests (of course that makes sense.) The problem is that in my project I now have two main functions, one to run the actual program and one int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } to run the google tests. Each time I want to run one I comment the other out, which of

SoapUI defining a library of reusable methods

别等时光非礼了梦想. 提交于 2019-12-12 22:09:03
问题 I'm running into copy-pasting a lot of code at the moment in my SoapUI projects, and thought I'd have some sort of library of helper functions that can carry out most of my tasks. So I have a test suite for this, and the code itself is in a Groovy Script test step in this test suite. The idea is that I make my helper methods available to the context I'm in (a REST test request step). It instantiates fine and all that, but the problem is that when I want to invoke run(testRunner, context) , I

Visual studio test runner - criteria is filtering all tests

对着背影说爱祢 提交于 2019-12-11 20:24:30
问题 Using VS 2013 and TFS 2013, I have 4 unit tests but I want a TFS build to run only one of them. For this I have assigned [TestCategory("bvt")] as an attribute of the method. I edit the build definition, and within the "Add/Edit Test Run" dialog I give a value for "Test case filter:" of "TestCategory=bvt" With the filter added, no tests are executed. If I remove the filter then a team build using "ReleaseTfvcTemplate.12.xaml" result in all 4 tests being executed. I've tried wrapping the filter

How to implement Test Adapter

。_饼干妹妹 提交于 2019-12-11 15:53:25
问题 I'm trying to implement a custom test adapter for a unit testing framework I'm working on. The following sources have provided information to get me started: https://devblogs.microsoft.com/devops/writing-a-visual-studio-2012-unit-test-adapter/ https://blogs.msdn.microsoft.com/bhuvaneshwari/2012/03/13/authoring-a-new-visual-studio-unit-test-adapter/ https://blogs.msdn.microsoft.com/aseemb/2012/03/03/how-to-make-your-extension-visible-to-the-test-explorer-in-visual-studio-11/ http:/