evpl / xteps Goto Github PK
View Code? Open in Web Editor NEWHigh-level contextual steps in your tests for any reporting tool
License: Apache License 2.0
High-level contextual steps in your tests for any reporting tool
License: Apache License 2.0
The problem
[WARNING] Javadoc Warnings
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\CtxSteps.java:53: warning: no @param for <R>
[WARNING] <R, TH extends Throwable> R applyContextTo(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\MemorizingCtxSteps.java:55: warning: no @param for <R>
[WARNING] <R, TH extends Throwable> R applyContextTo(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\StepListener.java:45: warning: no @param for throwable
[WARNING] void stepFailed(String uuid, String stepName, Throwable throwable);
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\StepWriter.java:65: warning: no @param for input
[WARNING] <T, TH extends Throwable> void writeConsumerStep(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\StepWriter.java:82: warning: no @return
[WARNING] <T, TH extends Throwable> T writeSupplierStep(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\StepWriter.java:99: warning: no @param for input
[WARNING] <T, R, TH extends Throwable> R writeFunctionStep(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\StepWriter.java:99: warning: no @return
[WARNING] <T, R, TH extends Throwable> R writeFunctionStep(
[WARNING] ^
[WARNING] D:\git\xteps\xteps\src\main\java\com\plugatar\xteps\core\writer\DefaultStepWriter.java:46: warning: no @param for cleanStackTrace
[WARNING] public DefaultStepWriter(final StepListener listener, final boolean cleanStackTrace) {
[WARNING] ^
Environment
The problem
Now you must specify lamda input argument even if you don't want to use it.
Code style 1 (argument needed):
nestedSteps("Step 1", steps -> steps
.step("Inner step 1", () -> {})
.step("Inner step 2", () -> {})
);
Code style 2 (argument no needed):
nestedSteps("Step 1", steps -> {
step("Inner step 1", () -> {});
step("Inner step 2", () -> {});
});
Environment
The problem
Add aspects module with @step annotation (in Allure style). It will be useful for custom reporting tools.
Environment
The problem
Xteps
class contais 3 redundant methods: stepToContext
, nestedSteps
, nestedStepsTo
Instead of nestedSteps
and nestedStepsTo
methods it is easy to use step
and stepTo
combination like
step("Step 1", () -> {
step("Inner step 1", () -> {
...
});
});
Instead of stepToContext
method it easy to use steps().stepToContext()
combination.
Environment
The problem
Missing generic types description in StepWriter
methods. For example <T>
and <TH>
for writeFunctionStep
Environment
The problem
The stack trace contains a lot of redundant information (like DefaultStepWriter
methods).
StackTrace example
java.lang.RuntimeException
at com.my.example.ExampleTest.lambda$test$0(ExampleTest.java:11)
at com.plugatar.xteps.core.writer.DefaultStepWriter.lambda$writeRunnableStep$1(DefaultStepWriter.java:60)
at com.plugatar.xteps.core.writer.DefaultStepWriter.writeFunctionStep(DefaultStepWriter.java:105)
at com.plugatar.xteps.core.writer.DefaultStepWriter.writeRunnableStep(DefaultStepWriter.java:59)
at com.plugatar.xteps.core.steps.NoCtxStepsOf.step(NoCtxStepsOf.java:86)
at com.plugatar.xteps.Xteps.step(Xteps.java:258)
at com.my.example.ExampleTest.test(ExampleTest.java:11)
...
Environment
The problem
All sequential steps are reported as nested for Allure
Environment
The problem
DefaultStepWriter
cleans only main exception stack trace. It's not cleans causes and suppressed exceptions.
Environment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.