jelhan / ember-addon-tests Goto Github PK
View Code? Open in Web Editor NEWIntegration test helpers for Ember addons
License: MIT License
Integration test helpers for Ember addons
License: MIT License
Ember Addon Tests creates a temporary folder for the yarn workspaces. It needs to clean up these folder when the script execution ends. We may provide a flag to disable the clean up to ease debugging. E.g. as an environment variable EMBER_ADDON_TESTS_DISABLE_CLEANUP
.
API docs should be either provided as part of the README or as a website deployed on GitHub Pages. In both cases it would be great if they could be generated automatically based on available TypeScript types. Additional information may be provided using TSDoc.
TestProject
provides addOwnPackageAsDependency
and addOwnPackageAsDevDependency
but it misses a method to install own package as an ember addon (ember install <own-package>
). Such a method should be preferred as it would match installation instructions of most ember addons.
TestProject.createEmberApp()
and TestProject.createEmberAddon()
should take an Ember CLI version to use as an optional argument.
Implementation is a little bit tricky cause npx
does not work reliable if current working directory is a yarn workspaces (ember-cli/ember-cli#9331). As a work-a-round the npx
could be executed with a working directory outside of the yarn workspace. But in general the performance of npx
is very bad compared to using the Ember CLI installed globally or in yarn workspace.
I considered installing the chosen Ember CLI in the workspace as a work-a-round. Many dependencies could be reused when down- or upgrading an Ember CLI version. Therefore the overhead should be way slower than using npx
all the time. But Ember CLI has an issue which prevents installing it as a workspace dependency (ember-cli/ember-cli#9328).
None of them should be show stoppers but both make it more complex than it seems at the first go.
Currently the project is using a hard-coded list of folders to be ignored when copying required files of a package under test:
ember-addon-tests/src/lib/initialize.ts
Lines 33 to 48 in dab2d8a
This may not only slow down build time but also cause bugs. I just run into an issue with a stale .node_modules.ember-try
folder causing the tests to fail. For some reason some of the files in that folder could not be copied, which causes the tests to fail very early.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.