public class MySpecs extends Spec { public void define() { describe("My feature", () -> { it("should do something", () -> { }); it("should do something else", () -> { }); }); } } public class CombinedSpecs extends Spec { public void define() { combine( \t new MySpecs(), \t new AnotherSpecs() ); } } public class Main { public static void main(String[] args) { SpecRunner runner = Specsy.createRunner(); } } public class Main { public static void main(String[] args) { SpecRunner runner = Specsy.createRunner(); } }


上一篇:
下一篇:
切换中文