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

Tests: Add helpers #147

Merged
merged 2 commits into from
Jan 8, 2014
Merged

Tests: Add helpers #147

merged 2 commits into from
Jan 8, 2014

Conversation

tonyganch
Copy link
Member

  1. Tests are divided into 2 folders: core and options.
    core is supposed to collect tests for cli.js and csscomb.js.
  2. Add file test/mocha.js and run mocha programmatically.
    This allows adding helpers for all tests.
    Since bdd is default ui and dot is default reporter, remove options.
  3. Add test helpers: readFile(), shouldBeEqual() and shouldDetect().
  4. Skip failing tests.

Good news is we have helpers that can be used in all tests.
Code is simpler and I believe it will be easier to add cases for #89.

The fun part is 2 tests are broken now and skipped: one + two.
Since those cases appear to fail in dev branch as well when tested manually in console, I assume they have never worked in fact.
So I've commented them out and created issues.

tumblr_mmt4ofu00z1soylsvo1_500

@ghost ghost assigned mishanga Dec 27, 2013
Divide tests into 2 folders: core and options.
Use mocha programmatically.
Add test helpers: `readFile()`, `shouldBeEqual` and `shouldDetect`.
@mishanga
Copy link
Contributor

rebased

kizu added a commit to kizu/csscomb.js that referenced this pull request Dec 27, 2013
kizu added a commit to kizu/csscomb.js that referenced this pull request Dec 27, 2013
kizu added a commit to kizu/csscomb.js that referenced this pull request Dec 27, 2013
kizu added a commit to kizu/csscomb.js that referenced this pull request Dec 27, 2013
kizu added a commit to kizu/csscomb.js that referenced this pull request Dec 28, 2013
mishanga added a commit that referenced this pull request Jan 8, 2014
@mishanga mishanga merged commit cab8285 into dev Jan 8, 2014
@mishanga mishanga deleted the tg/test-helpers branch January 8, 2014 20:20
kizu added a commit to kizu/csscomb.js that referenced this pull request Jan 8, 2014
mishanga pushed a commit that referenced this pull request Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants