Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Writing automated tests for packages

    App Packaging & Development
    7
    12
    176
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      murgero App Dev @girish last edited by

      @girish Beautiful I'll get tests going for Directus then. Since I am being paid for it's packaging.

      marcusquinn 1 Reply Last reply Reply Quote 4
      • marcusquinn
        marcusquinn @murgero last edited by

        @murgero Yay 😁 unit testing definitely a great string to add to your bow and hopefully time-saver for adding more apps without adding maintenance whack-a-mole overhead too when you'd hope the tests will do the monitoring so we don't need to so much.

        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff last edited by

          @murgero Thanks, if you have any question, feel free to ask and I am happy to help.

          1 Reply Last reply Reply Quote 1
          • doodlemania2
            doodlemania2 App Dev last edited by

            Can you tell me a bit about your setup? I assume this is a Linux desktop distro? Any pointers on initial setup would be appreciated!

            doodlemania2 1 Reply Last reply Reply Quote 0
            • doodlemania2
              doodlemania2 App Dev @doodlemania2 last edited by

              @girish - i watched the video and was able to discern most of your setup, but would still appreciate a sanity check if you have time on how you got your test harness up and running. Having troubles getting Selinium to "run"

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                @doodlemania2 Happy to help!

                Yes, I am on Ubuntu but @nebulon is on Arch, so that should work as well. Which part are you stuck in? Did the npm install go through? What's your setup like?

                1 Reply Last reply Reply Quote 0
                • BrutalBirdie
                  BrutalBirdie App Dev @girish last edited by

                  @girish Arg how did you enable the browser on the right? (Selenium/Chromedriver)

                  1 Reply Last reply Reply Quote 0
                  • nebulon
                    nebulon Staff last edited by nebulon

                    It will be initialized by the test.js script. The requires are important as well as the before and after hook. See https://git.cloudron.io/cloudron/minio-app/-/blob/master/test/test.js

                    BrutalBirdie 1 Reply Last reply Reply Quote 0
                    • BrutalBirdie
                      BrutalBirdie App Dev @nebulon last edited by

                      @nebulon Yea I just wanted to reply never mind, I copied the tests from the alltube app which do not even use selenium so yeeaa my mistake.

                      Now I took the nextcloud tests and will learn from them 🙂

                      1 Reply Last reply Reply Quote 0
                      • E
                        erics App Dev last edited by erics

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post