Answer the question
In order to leave comments, you need to log in
I'm trying to run a test and I get the error No tests found for given includes: [en.stqa.pft.sandbox.SquareTests](filter.includeTestsMatching)?
I'm new.
There is a code:
package ru.stqa.pft.sandbox;
public class Square {
public double l;
public Square(double l) {
this.l = l;
}
public double area() {
return this.l * this.l;
}
}
package ru.stqa.pft.sandbox;
import org.testng.Assert;
import org.testng.annotations.Test;
public class SquareTests {
@Test
public void testArea(){
Square s = new Square(5);
Assert.assertEquals(s.area(), 25.0);
}
}
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "MyFirstProgram"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.testng:testng:7.3.0'
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> No tests found for given includes: [en.stqa.pft.sandbox.SquareTests](filter.includeTestsMatching)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question