All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] [PATCH 0/8] fuego-release-test fixes
@ 2018-05-02 14:20 Guilherme Campos Camargo
  2018-05-02 14:20 ` [Fuego] [PATCH 1/8] Update ip example of README.md Guilherme Campos Camargo
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Guilherme Campos Camargo @ 2018-05-02 14:20 UTC (permalink / raw)
  To: fuego

Hello, Tim

These patches are implementing the changes you've requested in your
review and a few other fixes, in summary:

  - Replace working_dir with two separate dirs: resources_dir (for test
    assets) and output_dir (for test resulting files)

  - Print the results of the tests individually, prefixing them with an
    id and with a summary - and parse them individually with log_compare
    ("ok" and "not ok")

    Output Example (Log level set as INFO)

    ```
    ...
    test_run:REPORT: run 15 check text build queue fuego board check
    test_run:INFO: Executing Selenium Command 'CheckText'
    test_run:INFO:   Matching text found
    test_run:REPORT: ok 15
    test_run:REPORT: run 16 click img build hello world
    test_run:INFO: Executing Selenium Command 'Click'
    test_run:INFO:   Element clicked
    test_run:REPORT: ok 16
    test_run:REPORT: run 17 check text executors hello world
    test_run:INFO: Executing Selenium Command 'CheckText'
    test_run:INFO:   Matching text found
    test_run:REPORT: ok 17
    test_run:REPORT: run 18 check screenshot side-panel-tasks
    test_run:INFO: Executing Selenium Command 'CheckScreenshot'
    test_run:INFO:   Resulting difference (0.00123834) below threshold (0.1)
    test_run:INFO:   Element's screenshot matches the reference
    test_run:REPORT: ok 18
    test_run:REPORT: run 19 check screenshot footer
    test_run:INFO: Executing Selenium Command 'CheckScreenshot'
    test_run:INFO:   Resulting difference (0.0) below threshold (0.1)
    test_run:INFO:   Element's screenshot matches the reference
    test_run:REPORT: ok 19
    test_run:INFO: All tests finished with SUCCESS
    ```

    Output Example (Log level set as REPORT)

    ```
    ...
    test_run:REPORT: run 15 check text build queue fuego board check
    test_run:REPORT: ok 15
    test_run:REPORT: run 16 click img build hello world
    test_run:REPORT: ok 16
    test_run:REPORT: run 17 check text executors hello world
    test_run:REPORT: ok 17
    test_run:REPORT: run 18 check screenshot side-panel-tasks
    test_run:REPORT: ok 18
    test_run:REPORT: run 19 check screenshot footer
    test_run:REPORT: ok 19

  - Do not require running the test with sudo - See the commit message
    `Remove requirement of running the test script as sudo`

  - Implement a few other minor fixes as updating the readme and catch
    an PermissionError on image.save().

Please let me know what you think.

Thanks

--
Guilherme

Guilherme Campos Camargo (8):
  Update ip example of README.md
  Replace working_dir arg with resources_dir and output_dir
  Remove requirement of running the test script as sudo
  Catch PermissionError when saving screenshots
  Add new log level REPORT
  Add `description` optional argument to test cases
  Add description to tests in COMMANDS_TO_TEST
  Log test results with the REPORT log level and print descriptions

 .../Functional.fuego_release_test/README.md   |  45 ++---
 .../fuego_test.sh                             |  13 +-
 .../Functional.fuego_release_test/test_run.py | 159 +++++++++++++-----
 3 files changed, 144 insertions(+), 73 deletions(-)

-- 
2.17.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-05-07 15:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 14:20 [Fuego] [PATCH 0/8] fuego-release-test fixes Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 1/8] Update ip example of README.md Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 2/8] Replace working_dir arg with resources_dir and output_dir Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 3/8] Remove requirement of running the test script as sudo Guilherme Campos Camargo
2018-05-04 20:36   ` Tim.Bird
2018-05-07 15:04     ` Guilherme Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 4/8] Catch PermissionError when saving screenshots Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 5/8] Add new log level REPORT Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 6/8] Add `description` optional argument to test cases Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 7/8] Add description to tests in COMMANDS_TO_TEST Guilherme Campos Camargo
2018-05-02 14:20 ` [Fuego] [PATCH 8/8] Log test results with the REPORT log level and print descriptions Guilherme Campos Camargo
2018-05-04 20:24   ` Tim.Bird
2018-05-07 14:55     ` Guilherme Camargo
2018-05-04 20:35 ` [Fuego] [PATCH 0/8] fuego-release-test fixes Tim.Bird

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.