Skip to content

Using Gradle's scala test plugin#10

Open
sorokinigor wants to merge 1 commit intokirhgoff:masterfrom
sorokinigor:master
Open

Using Gradle's scala test plugin#10
sorokinigor wants to merge 1 commit intokirhgoff:masterfrom
sorokinigor:master

Conversation

@sorokinigor
Copy link
Copy Markdown

Hey,
It seems to me that you used the right plugin, but for some reason, it didn't work on your machine :)
I tried to run them using my local gradle distribution (version 4.2.1) and the gradle wrapper included in the project (version 3.5-rc-2) - tests are passed for both versions.
Can u try to run it again and send me the exception?

gradle -v


Gradle 4.2.1

Build time: 2017-10-02 15:36:21 UTC
Revision: a88ebd6be7840c2e59ae4782eb0f27fbe3405ddf

Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_131 (Oracle Corporation 25.131-b11)
OS: Mac OS X 10.12.6 x86_64

gradle test
Task :compileScala
Pruning sources from previous analysis, due to incompatible CompileSetup.

Task :compileTestScala
Pruning sources from previous analysis, due to incompatible CompileSetup.

Task :test
Discovery starting.
Discovery completed in 218 milliseconds.
Run starting. Expected test count is: 16
IntegrationTest:
ProductionConfiguration

  • should be able to work 100 ticks (258 milliseconds)
    MorphoidEngineTest:
    Creature
  • should be able to calculate its origin point (44 milliseconds)
    Creature
  • should know its bounding rect (7 milliseconds)
    Rect
  • should be possible to check if it is inside (1 millisecond)
    Rect
  • should be able to detect intersects (1 millisecond)
    Rect
  • should be able to inflate (0 milliseconds)
    MorphoidEngine
  • should provide surroundings (25 milliseconds)
    MorphoidEngine
  • should see shrooms without exceptions (153 milliseconds)
    Shroom
  • should stay (2 milliseconds)
    Shroom
  • should produce energy (8 milliseconds)
    Ooze
  • should roam (2 milliseconds)
    Ooze
  • should move in appropriate time (1 millisecond)
    Ooze
  • should move towards shrooms (3 milliseconds)
    Ooze
  • should find best direction (0 milliseconds)
    Ooze
  • should die without food (3 milliseconds)
    Ooze
  • should live near shroom (1 millisecond)
    Run completed in 632 milliseconds.
    Total number of tests run: 16
    Suites: completed 3, aborted 0
    Tests: succeeded 16, failed 0, canceled 0, ignored 0, pending 0
    All tests passed.

BUILD SUCCESSFUL in 39s
6 actionable tasks: 6 executed

./gradlew -v


Gradle 3.5-rc-2

Build time: 2017-03-27 15:56:23 UTC
Revision: ec63970cd167993d3dcda346a1d00a286a23b1c9

Groovy: 2.4.10
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_131 (Oracle Corporation 25.131-b11)
OS: Mac OS X 10.12.6 x86_64

./gradlew test
Cleaned up directory '/Users/igorsorokin/projects/morphoid-fork/build/resources/test'
Cleaned up directory '/Users/igorsorokin/projects/morphoid-fork/build/resources/main'
:compileJava NO-SOURCE
:compileScala
:processResources
:classes
:compileTestJava
:compileTestScala
:processTestResources
:testClasses
:test
Discovery starting.
Discovery completed in 226 milliseconds.
Run starting. Expected test count is: 16
IntegrationTest:
ProductionConfigurationCUTING

  • should be able to work 100 ticks (260 milliseconds)
    MorphoidEngineTest:
    Creature
  • should be able to calculate its origin point (39 milliseconds)
    Creature
  • should know its bounding rect (5 milliseconds)
    Rect
  • should be possible to check if it is inside (1 millisecond)
    Rect
  • should be able to detect intersects (0 milliseconds)
    Rect
  • should be able to inflate (1 millisecond)
    MorphoidEngine
  • should provide surroundings (20 milliseconds)
    MorphoidEngine
  • should see shrooms without exceptions (187 milliseconds)
    Shroom
  • should stay (1 millisecond)
    Shroom
  • should produce energy (8 milliseconds)
    Ooze
  • should roam (2 milliseconds)
    Ooze
  • should move in appropriate time (1 millisecond)
    Ooze
  • should move towards shrooms (3 milliseconds)
    Ooze
  • should find best direction (0 milliseconds)
    Ooze
  • should die without food (5 milliseconds)
    Ooze
  • should live near shroom (1 millisecond)
    Run completed in 652 milliseconds.
    Total number of tests run: 16
    Suites: completed 3, aborted 0
    Tests: succeeded 16, failed 0, canceled 0, ignored 0, pending 0
    All tests passed.

BUILD SUCCESSFUL

Total time: 34.591 secs

@sorokinigor
Copy link
Copy Markdown
Author

I just noticed that there are some TestNG tests in repo, but there is no easy way to combine them with scala test. Do u really want to use both frameworks?)

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.

1 participant