Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

test: long execution time scripts #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

douglasduteil
Copy link
Member

Here some dummy test with some lil' changes to make the tests run.

This PR demo how we can test Perfy to make it more robust.
We still have to figure out a way to test the report result...

Here is some details of what I did here and there.

572

  • Linting and convention:
    Might be cool to have a .editorconfig and some eslint to uniform the code.
  • Templates can be valid js
    Use of comments in lib/index.template.html
  • Use existing protractor.confg.js to store the perfyOptions
  • Default report files path are absolute
    Use of comments in lib/index.template.html
  • Get ploty lib file from npm
  • Fix report pluralization
  • Add test case of long running script
    Look at the playground
  • Add node script to sync server and e2e test runner

> Here some dummy test with some lil' changes to make the tests run.

This PR demo how we can test Perfy to make it more robust.
We still have to figure out a way to test the report result...

Here is some details of what I did here and there.

- **Linting and convention**:
  Might be cool to have a `.editorconfig` and some `eslint` to uniform the code.
- **Templates can be valid js**
  Use of comments in `lib/index.template.html`
- **Use existing protractor.confg.js to store the `perfyOptions`**
- **Default report files path are absolute**
  Use of comments in `lib/index.template.html`
- **Get ploty lib file from npm**
- **Fix report pluralization**
- **Add test case of long running script**
  Look at the playground
- **Add node script to sync server and e2e test runner**
@douglasduteil
Copy link
Member Author

Here is a demo of the test is doing

https://imgpile.com/i/fxWWx

And here is a full screenshot of the report :

screencapture-localhost-9000-test-long-execution-time-public-index-html-1478470109416

@manekinekko
Copy link
Collaborator

wow! there is so many neat stuff here. Can you however split this PR into small ones/features?

@douglasduteil
Copy link
Member Author

Yes ! I will split and send it back by the week-end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants