fossasia / badgeyay

Attendee Badge Generator for Conferences
GNU General Public License v3.0
1.79k stars 446 forks source link

Add Travis and Code-Checks #1

Closed mariobehling closed 7 years ago

mariobehling commented 7 years ago

Add travis and other code-checks to repo.

nanspro commented 7 years ago

@mariobehling I would like to work on this issue

nanspro commented 7 years ago

.travis.yml file is already present Can you specify what do you mean by Code-Checks

jajodiaraghav commented 7 years ago

Hi @nanspro I think Mario is referring to adding tests to the repository so that we can prevent introduction of bugs in the project.

niccokunzmann commented 7 years ago

Ideas for tests:

These are very easy tests but useful bacause they introduce a restructuring which allows testing before more features are added and adding tests implies more rewriting without knowing whether it breaks a feature.

jajodiaraghav commented 7 years ago

Can I work on this?

niccokunzmann commented 7 years ago

@jajodiaraghav Sure, you can create a PR and share the progress.

niccokunzmann commented 7 years ago

If someone like to dig into how to test user interfaces of websites and flows, they can have a look at selenium. I would help to do the introduction. This is really something many projects need: How to test the UI flow.

jajodiaraghav commented 7 years ago

Hi everyone, I was checking out a few testing packages and I couldn't figure out which one to use (CasperJS?). I do not have experience writing tests. Also, most testing packages require npm. Is it fine to integrate npm to our repository and add the package.json file?

It would be great if someone could help.

niccokunzmann commented 7 years ago

So, the JS packages are for nodejs. They can not be used here. UI testing is different from testing serverside Javascript. Please follow this tutorial to set up one initial test: https://engineering.aweber.com/getting-started-with-ui-automated-tests-using-selenium-python/

If teh examples failes, we also need java running Standalone Selenium Server: http://docs.seleniumhq.org/download/

jajodiaraghav commented 7 years ago

@niccokunzmann Thanks a lot. This has clarified my doubts :) I will create a PR soon and update my progress so that others can join in.

niccokunzmann commented 7 years ago

87 added the basic test. I will create more issues...

niccokunzmann commented 7 years ago

89 #90 #91 should cover this now. Thanks @jajodiaraghav! We can create more issues...