Commit d10df3a9 authored by Chris's avatar Chris

Adding tests for the uglified scripts

parent c5b8412d
......@@ -4,28 +4,35 @@ stages:
- build
- test
variables:
NODE_ENV: "testing"
before_script:
- npm install
build:
stage: build
artifacts:
paths:
- dist/
script:
- rm dist/.gitkeep # keep this file out of the build artifacts
- export NODE_ENV="testing"
- npm install
- rm dist/.gitkeep # Keep this file out of the build artifacts
# - export NODE_ENV="testing"
# - npm install
- grunt uglify
- grunt qunit:dist # Test the uglified files
unit_tests:
stage: test
script:
- export NODE_ENV="testing"
- npm install
# - export NODE_ENV="testing"
# - npm install
- grunt unit
coverage_tests:
stage: test
script:
- export NODE_ENV="testing"
- npm install
# - export NODE_ENV="testing"
# - npm install
- grunt --verbose coverage
allow_failure: true
......@@ -3,7 +3,8 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
qunit: {
all: ['tests/qunit.html']
all: ['tests/qunit.html'],
dist: ['tests/qunit-dist.html']
},
blanket_qunit: {
all: {
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<title>BasicSet Tests</title>
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script>
QUnit.config.requireExpects = true;
</script>
<!-- source files being tested -->
<script src="../dist/BasicSet.min.js"></script>
<!-- tests -->
<script data-cover src="BasicSet.qunit.js"></script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment