kurkle / chartjs-plugin-gradient

Easy gradients for Chart.js
MIT License
37 stars 6 forks source link

Add test cases for time axis #25

Closed stockiNail closed 2 years ago

stockiNail commented 2 years ago

Add test cases for time axis, setting intl data in order to be sure the picture will be the same wherever the test is performed

kurkle commented 2 years ago

Your data range probably contains change in daylight saving? That could be the issue.

stockiNail commented 2 years ago

Your data range probably contains change in daylight saving? That could be the issue.

yes, now I was more concentrated to provide the test cases with time zone. Now I'll change the date in order do not have the daylight saving.... Unfortunately I used it just this week with daylight saving

stockiNail commented 2 years ago

Your data range probably contains change in daylight saving? That could be the issue.

I have changed the dates (using this week therefore without daylight saving in the middle) but it seems not related to that. Maybe I'm wrong

            |Lines       |Functions  |Branches    
Filename    |Rate     Num|Rate    Num|Rate     Num
==================================================
src/index.js|87.0%     54|81.8%    11|    -      0
==================================================
      Total:|87.0%     54|81.8%    11|    -      0
(node:2224) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTime.js
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTime.png
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTimeParsing.js
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTimeParsing.png
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTimeParsingOnColors.js
src/index.js|87.0%     54|81.8%    11|    -      0 === test/fixtures/xCartesianTimeParsingOnColors.png
Error: Resource not accessible by integration
kurkle commented 2 years ago

[test-*karma] TOTAL: 32 SUCCESS

Its the coverage reporting I added yesterday. Can you remove that from the CI?

kurkle commented 2 years ago

That one:

  - name: Report code coverage
   uses: zgosalvez/github-actions-report-lcov@v1
   with:
     coverage-files: coverage/chrome/lcov.info
     minimum-coverage: 80
     artifact-name: code-coverage-report
     github-token: ${{ secrets.GITHUB_TOKEN }}
stockiNail commented 2 years ago

[test-*karma] TOTAL: 32 SUCCESS

Its the coverage reporting I added yesterday. Can you remove that from the CI?

yes I can. Does it mean that we don't test the coverage?

stockiNail commented 2 years ago

If you agree, I have got another couple of tests to do and we could check if it works with this others.

EDIT: I mean tests on missing scale and missing color, without any dates

kurkle commented 2 years ago

yes I can. Does it mean that we don't test the coverage?

There are no checks for the coverage. I'll add some other service later to check the coverage as sonar can't be used for it (when pull requests come from forked repositories).

If you agree, I have got another couple of tests to do and we could check if it works with this others.

EDIT: I mean tests on missing scale and missing color, without any dates

Sure :)

stockiNail commented 2 years ago

If you agree, I have got another couple of tests to do and we could check if it works with this others. EDIT: I mean tests on missing scale and missing color, without any dates

Sure :)

I'm going to submit another PR to test the warning when axis is missing and we will see if it works. Few minutes...

stockiNail commented 2 years ago

I'm going to submit another PR to test the warning when axis is missing and we will see if it works. Few minutes...

PR #26 failed for the same reason (not related to dates). I'm going to remove the step from CI, as @kurkle suggested

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information