mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Setup testing for ci and development
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@ awx/projects
|
|||||||
awx/job_output
|
awx/job_output
|
||||||
awx/public/media
|
awx/public/media
|
||||||
awx/public/static
|
awx/public/static
|
||||||
|
awx/ui/tests/test-results.xml
|
||||||
awx/ui/static/js/awx.min.js
|
awx/ui/static/js/awx.min.js
|
||||||
awx/ui/static/js/local_config.js
|
awx/ui/static/js/local_config.js
|
||||||
awx/ui/static/css/awx.min.css
|
awx/ui/static/css/awx.min.css
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -240,9 +240,9 @@ test_coverage:
|
|||||||
coverage_html:
|
coverage_html:
|
||||||
coverage html
|
coverage html
|
||||||
|
|
||||||
# Run UI unit tests using Selenium.
|
# Run UI unit tests
|
||||||
test_ui:
|
test_ui: node_modules
|
||||||
$(PYTHON) manage.py test -v2 awx.ui.tests
|
$(GRUNT) karma:ci
|
||||||
|
|
||||||
# Run API unit tests across multiple Python/Django versions with Tox.
|
# Run API unit tests across multiple Python/Django versions with Tox.
|
||||||
test_tox:
|
test_tox:
|
||||||
|
|||||||
@@ -179,9 +179,6 @@
|
|||||||
<script src="{{ STATIC_URL }}js/helpers/AboutAnsible.js"></script>
|
<script src="{{ STATIC_URL }}js/helpers/AboutAnsible.js"></script>
|
||||||
<script src="{{ STATIC_URL }}js/widgets/JobStatus.js"></script>
|
<script src="{{ STATIC_URL }}js/widgets/JobStatus.js"></script>
|
||||||
<script src="{{ STATIC_URL }}js/widgets/DashboardCounts.js"></script>
|
<script src="{{ STATIC_URL }}js/widgets/DashboardCounts.js"></script>
|
||||||
<script src="{{ STATIC_URL }}js/widgets/HostPieChart.js"></script>
|
|
||||||
<script src="{{ STATIC_URL }}js/widgets/HostGraph.js"></script>
|
|
||||||
<script src="{{ STATIC_URL }}js/widgets/JobStatusGraph.js"></script>
|
|
||||||
<script src="{{ STATIC_URL }}js/widgets/DashboardJobs.js"></script>
|
<script src="{{ STATIC_URL }}js/widgets/DashboardJobs.js"></script>
|
||||||
<script src="{{ STATIC_URL }}js/widgets/PortalJobs.js"></script>
|
<script src="{{ STATIC_URL }}js/widgets/PortalJobs.js"></script>
|
||||||
<script src="{{ STATIC_URL }}js/widgets/Stream.js"></script>
|
<script src="{{ STATIC_URL }}js/widgets/Stream.js"></script>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Karma configuration
|
// Karma configuration
|
||||||
// Generated on Mon Aug 04 2014 21:17:04 GMT-0400 (EDT)
|
// Generated on Mon Aug 04 2014 21:17:04 GMT-0400 (EDT)
|
||||||
|
|
||||||
module.exports = function() {
|
module.exports = function(config) {
|
||||||
return {
|
config.set({
|
||||||
|
|
||||||
// base path that will be used to resolve all patterns (eg. files, exclude)
|
// base path that will be used to resolve all patterns (eg. files, exclude)
|
||||||
basePath: '',
|
basePath: '',
|
||||||
@@ -53,7 +53,11 @@ module.exports = function() {
|
|||||||
'../static/js/config.js',
|
'../static/js/config.js',
|
||||||
'../static/js/directives/dashboard-graphs.js',
|
'../static/js/directives/dashboard-graphs.js',
|
||||||
'../static/js/*/*.js',
|
'../static/js/*/*.js',
|
||||||
'../static/js/app.js'
|
'../static/js/app.js',
|
||||||
|
'../static/lib/angular-mocks/angular-mocks.js',
|
||||||
|
'../../../node_modules/ng-midway-tester/src/ngMidwayTester.js',
|
||||||
|
'./unit/*',
|
||||||
|
'./unit/**/*'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
@@ -72,7 +76,7 @@ module.exports = function() {
|
|||||||
// test results reporter to use
|
// test results reporter to use
|
||||||
// possible values: 'dots', 'progress'
|
// possible values: 'dots', 'progress'
|
||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
reporters: ['progress'],
|
reporters: ['dots', 'progress'],
|
||||||
|
|
||||||
client: {
|
client: {
|
||||||
mocha: {
|
mocha: {
|
||||||
@@ -102,5 +106,5 @@ module.exports = function() {
|
|||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
singleRun: false
|
singleRun: false
|
||||||
|
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user