-
Notifications
You must be signed in to change notification settings - Fork 30
Add TestKit to BOM and archetype modules [ECR-3056] #989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
exonum-java-binding/bom/pom.xml
Outdated
<groupId>com.exonum.binding</groupId> | ||
<artifactId>exonum-testkit</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure BOM shall specify the scope. Other test-only artifacts do not.
exonum-java-binding/service-archetype/src/main/resources/archetype-resources/pom.xml
Outdated
Show resolved
Hide resolved
The archetype project must depend on the testkit as well (as it does on core in runtime scope), as documented in the issue. |
<version>${maven-archetype.version}</version> | ||
<configuration> | ||
<properties> | ||
<nativeLibPath>${project.parent.basedir}/core/rust/target/debug</nativeLibPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dip56 Would you please test that release builds continue to work (we didn't use to use the native library in archetype ITs), and the generated project works with the installed app (the current 0.7.0-SNAPSHOT)?
} | ||
|
||
@Test | ||
void testServiceInstantiation() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be better to create a separate class with junit5 extension? Therefore we will have 2 separate tests:
- Check that the module is properly configured
- Check that
exonum-app
is properly installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. This particular test is only useful at project initialization to verify the app is installed properly + as an example of testkit configuration 🤔 We can extend some comments here and there/modify the test display name to make their purpose more apparent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the existing tests as they do not bring much value on top of this new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and documented the likely failure
Overview
Add TestKit to BOM and archetype modules.
See: https://jira.bf.local/browse/ECR-3056
Definition of Done