Я новичек.
Есть код:
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);
}
}
build.gradle:
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: [ru.stqa.pft.sandbox.SquareTests](filter.includeTestsMatching)