Skip to content

Automated tests#24

Closed
alekseysemenov wants to merge 5 commits intogriddynamics:masterfrom
alekseysemenov:testing
Closed

Automated tests#24
alekseysemenov wants to merge 5 commits intogriddynamics:masterfrom
alekseysemenov:testing

Conversation

@alekseysemenov
Copy link
Contributor

@ctapobep
Copy link

General impression: I'd try writing component or system tests instead of unit tests. Unit Tests seem useless when you statically mock out everything around..

@kevstigneev
Copy link
Contributor

@ctapobep Agree, but it seems not so easy - even Nexus codebase doesn't contain such tests.
I'd suggest to postpone tests re-work to past-1.0. WDYT?

@ctapobep
Copy link

Yap, makes sense to postpone it.

@gd-tmagrys
Copy link
Contributor

My questions/remarks:

  • do we need both mockito and PowerMock ? Can we write this tests to use only mockito ?
  • I agree with remark to use import static org.unit.Assert.* and then simply only assertEquals()
  • @kevstigneev , you'd like me to fix this remarks before release version 1.0 ?

@alekseysemenov
Copy link
Contributor Author

@gd-tmagrys, I agree with @ctapobep we would cut out PowerMock if getConfigurationFile() is package-private. Currently this method has private access and it can not be mocked with Mockito.

@kevstigneev
Copy link
Contributor

+1 to excuding this PR from 1.0 scope and re-writing then as @gd-tmagrys suggested.

@gd-tmagrys gd-tmagrys mentioned this pull request Jul 2, 2015
@kevstigneev
Copy link
Contributor

Superseded by PR #30

@kevstigneev kevstigneev closed this Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants