Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fix #775: Introduce SASS_BINARY_SITE environment, refactor tests/api.js #847

Closed
wants to merge 3 commits into from

Conversation

saper
Copy link
Member

@saper saper commented Apr 10, 2015

Factor out tests/render.js out of tests/api.js,
reducing boilerplate and allowing easier save and
restore of the environment.

Add tests for #775

@am11
Copy link
Contributor

am11 commented Apr 11, 2015

The test for #775 should go in #775. You can combine the refactoring of test in one PR. Would be easy to review, monitor CI progress and since so forth.

@saper
Copy link
Member Author

saper commented Apr 11, 2015

This pull request also includes #847; I propose we discuss refactoring of tests here - it makes no sense to introduce another PR just for commit 565ece9. including commit 31321b9 here makes sense as a justification why I needed to refactor this.

Unfortunately, unlike in Gerrit Code Review, I cannot stack pull requests on top of another. If you think that tests/render.js is unproblematic, we can merge this and #847 closes. If not, let's discuss testing here and push #847 alone, as it's trivial.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 22, 2015

I'll look at this post #775.

if (site) {
return [site, 'v' + package.version, sass.binaryName].join('/');
} else {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shoyldn't be possible. We should default to 'https://github.com/sass/node-sass/releases/download/v if the users has give no proeference.

Provide ability to locally mirror node-sass
binaries for various versions and platforms.

SASS_BINARY_SITE needs to be an URL pointing to
a collection of files organized like the Github
repository.

If SASS_BINARY_SITE is set to

 http://myhost:8080/local/node-sass-bin/

then

 http://myhost:8080/local/node-sass-bin/v3.0.0-beta.5/freebsd-x64-14_binding.node

should point to the FreeBSD 64 bit binary for node 0.12.0

The URL can be also specified as the --sass-binary-site
commandline option or in the package.json:

 "nodeSassConfig": {
   "binarySite": <url>
 }

Remove --sass-binary-url and friends.

Also change priority and use package.json defaults
last, after command line arguments and the environment.
Separate testing of all configuration
and runtime paramenters into a separate file.

Reduce bolierplate code and
use startup/teardown to restore
test context.

Implement additional single-parameter
tests for configuration variable.
@saper saper changed the title Refactor tests/api.js and test #775 Fix #775: Introduce SASS_BINARY_SITE environment, refactor tests/api.js Apr 27, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Apr 28, 2015

Superseded by #901.

@xzyfer xzyfer closed this Apr 28, 2015
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this pull request Apr 7, 2024
Improve interpolate parsing and unquote output
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants