Testing and builds

@vutran @caike08

Hi guys, I’m glad to see you’re around and interested in taking some work. Do either of you have experience with tests? Can you take a look at our jest code and let me know what state it’s in?

https://docs.npmjs.com/cli/test.html
I’d like to be able to build out our Travis CI with running these tests as a pre-build step.

2 Likes

Hello, I am know more on less on unit testing with mocha, jest with React app. I don’t know much about Travis CL. Where can I get jest code? is it root project of FL-maps?

Do I just run ‘npm run test’ ?

2 Likes

Yep, they’re within the test directory in the project root.

npm run test

will start the suites.

2 Likes

After I run that command I get alot fail test on fl-map master_withoutDCS branch:
https://imgur.com/a/Q3S6XTx
https://imgur.com/XYYuIfm
https://imgur.com/UJ61wMC
https://imgur.com/e8zltQU

can someone confirm this is correct?

1 Like

@tmcnulty and @ArtyS know the most about the tests from the currently active devs. Once they are running again it would be great if you could create documentation for them @vutran, so anyone working on them in the future has that to refer to. (create a normal post in the react or sysadmin categories and add the tags ‘documentation, reactjs, webdev, sysadmin’)