junit-runner Questions
3
I have the spring boot application that runs without exception when I remove the basic application test. But it shows the following exception when I add the application test class
{"@timestamp":"2...
Herbartian asked 23/4, 2018 at 12:50
4
I'm using androidx.test libraries(which I migrated to recently) in my project and using custom AndroidJUnitRunner.
Before migration it was all working fine but now I'm getting this error -
Started...
Vladi asked 27/12, 2018 at 20:14
2
Solved
For suites I am using below template:
@RunWith(JUnitPlatform.class)
@SelectPackages("com.services.configuration")
@ExcludeTags({IntegrationTags.JPA, IntegrationTags.REST})
public class UnitTestSui...
Epigraph asked 3/4, 2018 at 18:35
7
Solved
I have an interface List whose implementations include Singly Linked List, Doubly, Circular etc. The unit tests I wrote for Singly should do good for most of Doubly as well as Circular and any othe...
Boondoggle asked 26/4, 2013 at 13:1
3
Solved
The kotlintest tests run perfectly fine when started from Intellij, but when I try to run them with the gradle test task command, only my regular JUnit tests are found and run.
The kotlintest code...
Consueloconsuetude asked 21/7, 2017 at 7:12
0
I'm currently creating a unit custom JUnit runner (which will precisely call custom code before/after each test method) e.g.
class MyRunner extends BlockJUnit4ClassRunner {
private MyApi api = n...
Chapell asked 25/3, 2018 at 9:29
7
Is it possible to parameterize a TestSuite in junit 4 ?
For declaring a class as a test suite I need the annotation @RunWith(Suite.class), but the same annotation is also needed to declare the tes...
Filature asked 26/2, 2014 at 19:46
1
Solved
I have a spring-boot application which uses spring-boot version 1.5.9.RELEASE. To test this application I want to use junit-jupiter version 5.0.2.
For simple service tests it works without any pro...
Taker asked 29/12, 2017 at 8:3
3
According to the PowerMock docs, I should be able to run using a PowerMockRule instead of @RunWith(PowerMockRunner.class) and get the same results.
I seem to have found a case where this isn't tru...
Volition asked 15/9, 2014 at 14:42
1
Solved
I have a bunch of JUnit tests that extend my base test class called BaseTest which in turn extends Assert. Some of my tests have a @Category(SlowTests.class) annotation.
My BaseTest class is annot...
Acrodont asked 28/10, 2016 at 8:7
2
I want to test a fragment in test activity. I added TestTragmentActivity to androidTest along with AndroidManifest.xml file. But when I try to use this activity via an ActivityTestRule it gives fol...
Diametrically asked 6/10, 2016 at 11:55
0
I have multiple tests running as a part of Android Jenkins build including Unit test and Functional tests. I am able to publish the test results on Jenkins successfully but I want to see seperate r...
Chancre asked 19/4, 2016 at 17:44
1
Solved
I implemented a runner class A.class inherited from BlockJUnit4ClassRunner so that I can annotate tests with @RunWith(A.class). At the same time, sb. else annotate the tests with RunWith(Parameteri...
Sedulous asked 2/1, 2015 at 17:1
3
In a project there are multiple test classes each containing multiple test methods. Say, I want to create a database connection before running each of these test classes. The connection should be m...
Menon asked 27/8, 2013 at 8:32
3
Solved
Without looking into JUnit source itself (my next step) is there an easy way to set the default Runner to be used with every test without having to set @RunWith on every test? We've got a huge pile...
Happenstance asked 4/5, 2011 at 15:40
1
I have been trying to create a personalized test suite by creating a suiterunner which extends runner. In the test suite which is annotated with @RunWith(suiterunner.class) i am referring to the te...
Zelikow asked 21/10, 2011 at 7:31
2
Solved
Is there a clean way to run parameterized jUnit 4 tests without changing the runner, i.e. without using
@RunWith(Parameterized.class)?
I have unit tests which require a special runner already and ...
Limb asked 21/12, 2010 at 13:1
1
© 2022 - 2024 — McMap. All rights reserved.