These are chat archives for pixijs/pixi.js

15th
Jun 2017
leoshall
@a7359475
Jun 15 2017 02:15
hi, I'm new to pixi, I wanna know how to run pixi's test? Anybody can tell me ? Thank you!
who can tell me which test framework pixi use?
ᦖєgιт
@LegitSoulja
Jun 15 2017 02:27
Depends. Are you using Apache or Nodejs?
leoshall
@a7359475
Jun 15 2017 02:27
nodejs
ᦖєgιт
@LegitSoulja
Jun 15 2017 02:28
okay, what are you trying to test? Or confused on what to download?
leoshall
@a7359475
Jun 15 2017 02:29
I download pixi from github, there is a folder named 'test', in which is all testcases, I wanna run it.
the folder named 'test' is in the pixi's root
ᦖєgιт
@LegitSoulja
Jun 15 2017 02:30
Oh, 1 sec let me check
leoshall
@a7359475
Jun 15 2017 02:31
OK, Thank you~
ᦖєgιт
@LegitSoulja
Jun 15 2017 02:32
Ok, pixi is a npm package. Installing it, and downloading extracting the folder "test", you can run index.js using nodejs
It looks, as if the pixi binaries are attached with the test, so you might not need to install pixi, but if you're developing a game you must, or use the source provided. Only if you know what you're doing
Chad Engler
@englercj
Jun 15 2017 02:37
go to your downloaded folder, install dependencies (npm install) and then run the test script (npm test)
leoshall
@a7359475
Jun 15 2017 02:37
I'm just studing how to test a project, my project is similar to pixi, so I wanna use the test framework that pixi use
thank you, I'll have a try
Kulimaze
@kulimaze_twitter
Jun 15 2017 02:48
Is there a specific place to discuss issues that we're having with Pixi or should we just throw that in here?
Yeling Shi
@shiyeling
Jun 15 2017 02:48
this is a forum which seems more active。
Brooks Johnson
@bkjohnson
Jun 15 2017 03:24
Can someone help me understand toLocal() and toGlobal()? It looks like the values in vertexData refer to points on the screen, not points in the Pixi container, so if I wanted to use those values to form part of a new Polygon would I have to call toLocal() on all of them first?
Chad Engler
@englercj
Jun 15 2017 03:28

@a7359475

so I wanna use the test framework that pixi use

We use a custom framework on top of electron and mocha. I'd suggest not using the same framework as us.

Use mocha directly
leoshall
@a7359475
Jun 15 2017 03:30
@englercj yes, I found that, It's floss, Thank you for your remind!