-
Notifications
You must be signed in to change notification settings - Fork 10
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
Technical/issue 56 organize tests #74
Conversation
Build Greenwood With:
Default Greenwood Configuration and Default Workspace w/ Nested Directories
- should pass all smoke tests
✓ should create a default blog page directory
Custom blog page directory
✓ should output an index.html file within the default hello page directory
1) should have the expected heading text within the hello example page in the hello directory
2) should have the expected paragraph text within the hello example page in the hello directory Something must be up with the hashing, likely because the absolute path on my machine is different from CircleCI probably.... |
I don't know what's wrong but
constantly and that's not the test I was editing. |
Hmm, I saw that before and fixed it by upgrading mocha, but seems the issue is now back :/ Taking a look. |
Ok, saw the issue with I also notice that in Not sure if we should leave |
Actually, a little rimraf to the rescue. 😄 Tweaked the "clean": "rimraf ./**/.greenwood/** && rimraf ./**/public/** && rimraf ./coverage" now that can be run before That should fix it now! 🔧 |
* integrating smoke tests * full smoke test integration * cleanup * fix linting * improve error message * Fix test async and teardown (#77) * fix: removed smoke test promises, implemented shared context using this * fix: remove TODO
Related Issue
Phew 😌
Resolves #56 and
It's a start and I'm open to the naming conventions, but now every test runs in a nice isolated environment that can easily be used to replicate any particular user setup we can think of with minimal fuss to setup. 💯
Summary of Changes
Setup
intoTestBed
and refactored it to set contextualizing test running for a particular case directoryrunSmokeTest
script for running common Greenwood assertions. Works good, but might need a little more work / tweaking, or we accept it's current state and hand craft the rest.eslint
directly like we do)test:tdd
) for running tests in watch modeprocess.env.NODE_ENV
from index.jsTODO / Help Wanted (track in a new issue for next sprint?)
runSmokeTest
into smaller cases for more granularity? Variations are pretty minorimport
in a page with custom front matterAll test cases captured in this ticket now: #76
Thoughts / Observations