Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help wanted] Write proper unit test instead of verifying checksum with fromJS #17

Open
kopax opened this issue Dec 20, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kopax
Copy link
Contributor

kopax commented Dec 20, 2018

Update unit test for css mixins

We did validate our function using their checksum after validation for all historical unit test.

Reason: when we started @bootstrap-styled/v4, styled-components v1.0 was missing descent test utils and IDE integrations. This was often causing invalid css due to missing trailing comma in our code.

Checksum was a way to multiple check any code change throung test update requirement.

New test css utils for styled-components now exist such as:

This already appeared in package.json and is not used (yet), @santaclauze (wait for explanation):

    "stylelint": "^9.9.0",
    "stylelint-config-recommended": "^2.1.0",
    "stylelint-config-styled-components": "^0.1.1",
    "stylelint-processor-styled-components": "^1.5.1",

We must stop maintaining our tests using CSS checksum and check the css synthax with it.

This is not urgent but maintaining CSS the current way is a slow down factor for every modifications. It also doesn't make sens anymore.

Related Issues

Solution

Every time a change needs to be made on @bootstrap-styled/css-mixins, everytime a new test is added, this issue will collect explanation and test example from the test author. This will increase XP sharing for testing CSS across our team.

This ticket will be closed when no more checksum unit test will be existing in our source code.

@kopax kopax added enhancement New feature or request help wanted Extra attention is needed labels Dec 20, 2018
@kopax kopax changed the title [Help wanted] Write proper unit testing instead of just verifying checksum for each function [Help wanted] Write proper unit test instead of verifying checksum with fromJS Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant