<commit_before>module.exports = function(grunt) {
  grunt.initConfig({
    clean: {
      test: 'test/fixtures/_component.json'
    },
    nodeunit: {
      tests: 'test/release_test.js'
    },
    release: {
      options: {
        bump: true,
        file: 'test/fixtures/_component.json',
        add: false,
        commit: false,
        tag: false,
        push: false,
        pushTags: false,
        npm: false
      }
    },
    setup: {
      test: {
        src: 'test/fixtures/component.json',
        dest: 'test/fixtures/_component.json'
      }
    }
  });

  grunt.loadTasks('tasks');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-nodeunit');

  grunt.registerTask('test', [
    'clean',
    'setup',
    'release',
    'nodeunit',
    'clean'
  ]);

  grunt.registerMultiTask('setup', 'Setup fixtures', function(){
    this.files.forEach(function(f){
      grunt.file.copy(f.src, f.dest);
    });
  });
};<commit_msg>test: change test setup so that grunt-release can use itself to release<commit_after>module.exports = function(grunt) {
  grunt.initConfig({
    bump: true,
    file: 'package.json',
    add: true,
    commit: true,
    tag: true,
    push: true,
    pushTags: true,
    npm: true,
    clean: {
      test: 'test/fixtures/_component.json'
    },
    nodeunit: {
      tests: 'test/release_test.js'
    },
    release: {
      options: {
        bump: '<%= bump %>',
        file: '<%= file %>',
        add: '<%= add %>',
        commit: '<%= commit %>',
        tag: '<%= tag %>',
        push: '<%= push %>',
        pushTags: '<%= pushTags %>',
        npm: '<%= npm %>'
      }
    },
    setup: {
      test: {
        src: 'test/fixtures/component.json',
        dest: 'test/fixtures/_component.json'
      }
    }
  });

  grunt.loadTasks('tasks');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-nodeunit');

  grunt.registerTask('test', [
    'clean',
    'setup',
    'release',
    'nodeunit',
    'clean'
  ]);

  grunt.registerMultiTask('setup', 'Setup test fixtures', function(){
    this.files.forEach(function(f){
      grunt.file.copy(f.src, f.dest);
    });
    grunt.config.set('file', 'test/fixtures/_component.json');
    grunt.config.set('add', false);
    grunt.config.set('commit', false);
    grunt.config.set('tag', false);
    grunt.config.set('pushTags', false);
    grunt.config.set('npm', false);
  });
};
{'fraction_non_alphanumeric': 0.17999179991799918, 'fraction_numerical': 0.0, 'mean_word_length': 2.337893296853625, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2518564', 'n_tokens_mistral': 851, 'n_tokens_neox': 834, 'n_words': 138}