Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Create new testkit project #121

Merged
merged 2 commits into from
Jul 5, 2017
Merged

Create new testkit project #121

merged 2 commits into from
Jul 5, 2017

Conversation

yg-apaza
Copy link
Contributor

No description provided.

Copy link
Contributor

@TimMoore TimMoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

I do have a few small suggestions:

  1. Normally, we put test utilities that live in a testkit project into testkit/src/main/ instead of testkit/src/test/, and then declare the dependency like testkit % Test instead of testkit % "test -> test". This is because the classes in testkit are a library that is used in tests, they aren't tests themselves. If you want to write unit tests for the test utilities themselves (which is a good idea), those can go into testkit/src/test/
  2. This change creates two locations for classes in the com.example.core package: under tools and under testkit. It is usually considered bad practice to split a single package into multiple artifacts this way, as it makes it confusing to know where source code should be located. I think it would be better to put the testkit code into a package called com.example.testkit.
  3. Maybe ReadSideTestDriver should also move into testkit?

build.sbt Outdated
.dependsOn(tools % "test -> test", itemApi, biddingApi)
.dependsOn(
tools % "test -> test",
testkit % "test -> test",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @TimMoore 's suggestion this dependency will be simplified to testkit % "test".
Moving ReadSideTestDriver to testkit will also simplify tools % "test -> test" into tools.

I'm liking this split into tools and testkit. 👍

@yg-apaza
Copy link
Contributor Author

yg-apaza commented Jul 4, 2017

@ignasi35 @TimMoore I updated with the suggested changes. Please review

@TimMoore TimMoore merged commit ca47597 into lagom:master Jul 5, 2017
@yg-apaza yg-apaza deleted the testkit branch July 5, 2017 01:15
@yg-apaza yg-apaza mentioned this pull request Jul 5, 2017
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants