RuedigerMoeller / fast-serialization

FST: fast java serialization drop in-replacement
Apache License 2.0
1.59k stars 247 forks source link

Run tests from command line #162

Closed korniltsev closed 7 years ago

korniltsev commented 8 years ago

Move tests to src/test/java from src/test. Copypaste test dependencies from pom.xml to build.gradle Can now run tests with mvn test, gradle test

korniltsev commented 8 years ago

I'l take a look at travis to see why it failed.

Btw do you know travis does nothing right now? Taken from https://travis-ci.org/RuedigerMoeller/fast-serialization/jobs/163650294

:test UP-TO-DATE
:check UP-TO-DATE
BUILD SUCCESSFUL

Total time: 6.771 secs

Runing all tests requires ~5 minutes. And travis runs no tests at all in 6 seconds.

korniltsev commented 8 years ago

There are two problems:

If I junit.Ignore these tests, the build is green. See https://github.com/korniltsev/fast-serialization/pull/2

korniltsev commented 8 years ago

So the problem with StringOffHeapTest#hardcore and other was memory related and fixed by increasing heap for test. The only one red test is TestObjectServer with "Connection refused" exception in one of three setups(jdks).

RuedigerMoeller commented 7 years ago

Thanks for your help !

RuedigerMoeller commented 7 years ago

thanks for helping. Hm .. what does the "All checks have failed" message above means (note i am not familar with travis, was provided by a contributor) image

korniltsev commented 7 years ago

It means the build has failed on travis. TestObjectServer is still red when run on travis. It is the only red test I failed to fix.

java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.(Socket.java:425) at java.net.Socket.(Socket.java:208) at org.nustaq.net.TCPObjectSocket.

You can click details and see the build log on travis.