Coder Social home page Coder Social logo

How to run the tests? about enet HOT 7 CLOSED

Ablu avatar Ablu commented on May 24, 2024
How to run the tests?

from enet.

Comments (7)

flambard avatar flambard commented on May 24, 2024

Yes, I need to fix that. What you need to do is start a shell and start the enet application, then run the tests.

from enet.

Ablu avatar Ablu commented on May 24, 2024

Could you give an example of which commands to run? If I try to google for erlang and tests I end up with the rebar line I posted above or some ct_run stuff which seems to require a whole lot of parameters 😕.

from enet.

flambard avatar flambard commented on May 24, 2024

You should be able to do something like this:

$ rebar3 shell 
===> Verifying dependencies...
===> Compiling enet
Erlang/OTP 21 [erts-10.0.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:0] [hipe] [dtrace]

Eshell V10.0.8  (abort with ^G)
1> application:ensure_all_started(enet).
{ok,[gproc,enet]}
2> eunit:test(enet_tests).
  All 7 tests passed.
ok

from enet.

Ablu avatar Ablu commented on May 24, 2024

Ah thanks. I was attempting it with erl directly...

from enet.

Ablu avatar Ablu commented on May 24, 2024

Hm... did this change?

Now I get:

2> eunit:test(enet_tests).
undefined
*** test module not found ***
**enet_tests

=======================================================
  Failed: 0.  Skipped: 0.  Passed: 0.
One or more tests were cancelled.
error

when running eunit:test(enet_tests).

from enet.

flambard avatar flambard commented on May 24, 2024

Yes, I migrated the tests from EUnit to Common Test since they are not really unit tests.. You run them with rebar3 ct like so:

$ rebar3 ct
===> Verifying dependencies...
===> Compiling enet
===> Running Common Test suites...
%%% enet_api_SUITE: ............
All 12 tests passed.

from enet.

Ablu avatar Ablu commented on May 24, 2024

Thanks :) Event better, the problem that I wanted to debug seems to have disappeared in latest master :->

from enet.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.