jlupi / sweet-junit-runner Goto Github PK
View Code? Open in Web Editor NEWAutomatically loads Integration Tests into Junit Suite. Build for Integration Test execution performance and maintenance.
License: BSD 3-Clause "New" or "Revised" License
Automatically loads Integration Tests into Junit Suite. Build for Integration Test execution performance and maintenance.
License: BSD 3-Clause "New" or "Revised" License
IntegrationTest maintenance is difficult, because they depend on the systems they integrate.
Failures of the system that is integrated causes IntegrationTests to fail. This becomes an issue if there are dozens of tests in the project that depend on multiple systems, because each failing Tests must be checked if the failure is caused by the integrated system, or if there was a bug introduced in the previous day.
To solve this problem it should be possible to define a Condition that will be executed before any test is started.
The test that has a Condition defined will be executed only if the Condition execution was successful.
If the condition fails the user should be notified about that (a separate ConditionTest would be failing).
Only classes annotated with '@IntegrationTEST' can define one or more Conditions.
@IntegrationTest(conditions = {DatabaseCondition.class, SubsystemCondition.class})
public BookingServiceIntegrationTest {
...
}
@IntegrationTest(SubsystemCondition.class)
public PaymentServiceIntegrationTest {
...
}
public class DatabaseCondition implements Condition {
...
}
public class SubsystemCondition implements Condition {
...
}
public interface Condition {
Status checkCondition();
}
If the DatabaseCondition fails then
If the SubsystemCondition fails then
At the moment the project is bound to junit4. Junit 5 should also be supported.
There should only be one notation for test sweet-junit runner executes.
New annotation could be
@suitetest (because it alraeady exists)
@sweettest (because it reflects the name of the project)
@IntegrationTEST (I would remove it because, Tests do not need to be integrationTests)
@jlupi => what do you think?
At the moment sweet junit runner loads annotated with '@IntegrationTEST' or '@suitetest'.
It should be also possible to load or exclude classes based on a naming pattern, for example:
org.package
org.package
There should be a mechanism that checks if a loaded class is a JUnit Test class.
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.