• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Test suite for MagicMirror²

Scheduled Pinned Locked Moved Upcoming Features
42 Posts 5 Posters 37.6k Views 6 Watching
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.
  • R Offline
    roramirez Core Contributors @roramirez
    last edited by Mar 11, 2017, 3:49 PM

    I fixed before mentioned https://github.com/roramirez/MagicMirror/commit/2a94ee55ccb8fa06f4d07c2a67307b5ed0a659a3

    :)

    Easy module development with MagicMirror Module Template

    1 Reply Last reply Reply Quote 0
    • R Offline
      roramirez Core Contributors
      last edited by Mar 28, 2017, 4:48 PM

      The last build of today.

      0_1490719678643_Screenshot at 2017-03-28 13-42-01.png

      Easy module development with MagicMirror Module Template

      R 1 Reply Last reply Apr 9, 2017, 1:39 AM Reply Quote 1
      • R Offline
        roramirez Core Contributors @roramirez
        last edited by Apr 9, 2017, 1:39 AM

        I mention this here if someone can help

        If use moment-timezone for a test this fail

        • Fail in Travis: https://travis-ci.org/roramirez/MagicMirror/builds/220155902
        • Commit example: https://github.com/roramirez/MagicMirror/commit/05d7c9556e773bf2b941035953200ff327efb476

        Easy module development with MagicMirror Module Template

        1 Reply Last reply Reply Quote 0
        • R Offline
          roramirez Core Contributors
          last edited by May 3, 2017, 2:45 AM

          Hi Guys, are you still alive?

          Sometimes the build failed, an example here
          https://travis-ci.org/MichMich/MagicMirror/jobs/227577643

          Someone have some idea how to fix this?

          cc @qistoph @strawberry-3-141 @morozgrafix

          Easy module development with MagicMirror Module Template

          Q 1 Reply Last reply May 4, 2017, 7:31 AM Reply Quote 0
          • Q Offline
            qistoph @roramirez
            last edited by May 4, 2017, 7:31 AM

            @roramirez sorry, haven’t had much time to spend on MagicMirror lately.

            My guess is that some of the tests take too long. Especially the ones actually starting MM and not just load a module.

            I imagine Travis runs the tests in some sort of container with multiple containers running on the same system. If there is some heavy load at the same time as the MM test is run this might slow down our test with a certain factor. Seeing the difference in the usual runtime between tests (couple of ms vs multiple seconds) makes me think some of our tests are on the heavier end. Having a multiple second test delayed by a factor, say, 2 makes it easily run 5 seconds. Hitting the 5 sec maximum (see log).

            Two possibilities I see to fix this:

            1. Reduce the runtime of long running tests
            2. Increase the allowed runtime before timeout

            Hopefully this helps.

            Best regards and thanks for keeping this thread alive!

            R 1 Reply Last reply May 20, 2017, 4:47 PM Reply Quote 0
            • R Offline
              roramirez Core Contributors @qistoph
              last edited by May 20, 2017, 4:47 PM

              @qistoph Well I’ve testing de CircleCI vs Travis.

              For same Build
              Failed: https://travis-ci.org/roramirez/MagicMirror/builds/234342109
              Sucess: https://circleci.com/gh/roramirez/MagicMirror/6

              Easy module development with MagicMirror Module Template

              Q 1 Reply Last reply May 22, 2017, 1:29 PM Reply Quote 0
              • Q Offline
                qistoph @roramirez
                last edited by May 22, 2017, 1:29 PM

                @roramirez
                Except for one of the errors I think all can still be explained by my last post.

                R 1 Reply Last reply May 26, 2017, 3:31 AM Reply Quote 0
                • R Offline
                  roramirez Core Contributors @qistoph
                  last edited by May 26, 2017, 3:31 AM

                  @qistoph said in Test suite for MagicMirror²:

                  Except for one of the errors I think all can still be explained by my last post.

                  Yes, you’re rigth. Can you help in this area?

                  Easy module development with MagicMirror Module Template

                  R 1 Reply Last reply Jul 24, 2017, 1:08 AM Reply Quote 0
                  • R Offline
                    roramirez Core Contributors @roramirez
                    last edited by Jul 24, 2017, 1:08 AM

                    Yay! After a long fight the test are passing in Travis CI

                    https://github.com/MichMich/MagicMirror/pull/953

                    Easy module development with MagicMirror Module Template

                    1 Reply Last reply Reply Quote 2
                    • C Offline
                      Cato Module Developer
                      last edited by Aug 5, 2017, 7:15 AM

                      I’m trying to find some information on testing in Magic Mirror for devs/contributors but it’s (too) hard to find. I can’t find any related forum, it’s not mentioned in the “MagicMirror² Module Development Documentation”, and not directly mentioned in any README-ish files on GitHub.

                      Of course, some of this can be deduced from the source code, but a small “Getting Started” guide would help more people getting … eh started. :-)

                      I’m living in Visual Studio as my day job, but not so much with writing tests, so my knowledge of other tools are limited. What I need is some information on software requirements and where tests should be and how testing is done.

                      R 1 Reply Last reply Aug 5, 2017, 6:23 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy